Converting an object literal to a sorted Array
<p>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, that is sorted by the value of "rank".
How can I do that? Thanks a lot.</p>

<p>object:</p>

<pre><code>{
452:{
     bla:123,
     dff:233,
     rank:2
  },
234:{
     bla:123,
     dff:233,
     rank:1
  }
</code></pre>

<p>}</p>

<p>returned array:</p>

<p>[{bla:123,dff:233,rank:1},{bla:123,dff:233,rank:2}]</p>
