I have an object like this:
I would like to do two things.
- Sort the properties based on their values
- I would to know the order (or index) for any given property. For example, after ordering, I would like to know that the index of
00D
is the 5th.
How can I achieve this in JavaScript?