I have an object literal, where the values of its key are more objects, and one of the keys of the inner objects is named "rank" - and has an floating point value. I want to convert the object literal to an array of the inner objects, sorted by the value of "rank".
Input Object:
{ 452:{ bla:123, dff:233, rank:2 }, 234:{ bla:123, dff:233, rank:1 } }
Output Array:
[ { bla:123, dff:233, rank:1}, { bla:123, dff:233, rank:2 } ]