Javascript sort array of objects by KEY : <p>I want to sort an array like this DESC by the key "score"</p>

<pre><code>[{user : 'a' , score : 45},{user: 'c', score: 90},{user : 'r' , score : 56}]
</code></pre>

<p>result would be </p>

<pre><code>[{user: 'c', score: 90},{user : 'r' , score : 56}, {user : 'a' , score : 45}]
</code></pre>

<p>What's the best practice ?</p>

<p>i tried underscore _.sortBy function whithout success</p>
