 <p>You could do this using <a href="http://underscorejs.org/" rel="nofollow">underscore</a>, since you essentially have a list of elements once you've got <code>c</code>.</p> <p><code>var sortedC = _.sortBy(c, function (elem) { return elem.propertyToSort; });</code></p>