Sort the keys of an object