Sorts two objects based on their keys' positions in an array of keys.
An array of keys to sort the objects by.
A number indicating the sort order of the two objects.
Sorts two objects based on their keys' positions in an array of keys.