Sort the keys in an object.