Sort by two values prioritizing on one of them
<p>How would I sort this data by <code>count</code> and <code>year</code> values in ascending order prioritizing on the <code>count</code> value? </p>

<pre><code>//sort this
var data = [
    { count: '12', year: '1956' },
    { count: '1', year: '1971' },
    { count: '33', year: '1989' },
    { count: '33', year: '1988' }
];
//to get this
var data = [
    { count: '1', year: '1971' },
    { count: '12', year: '1956' },
    { count: '33', year: '1988' },
    { count: '33', year: '1989' },
];
</code></pre>
