Order array of objects by custom field, then alphabetically : <p>I have an array of objects, each object has 2 values, priority and name.</p>

<pre><code>var people = [
        {
            "name" : "Jim",
            "priority" : "Low"
        },
        {
            "name" : "Gary",
            "priority" : "Medium"
        },
        {
            "name" : "Andrew",
            "priority" : "Medium"
        },
        {
            "name" : "Bill",
            "priority" : "High"
        },
        {
            "name" : "Edward",
            "priority" : "Medium"
        }
    ]
</code></pre>

<p>I would like to sort this array, ordering by priority High to Low, and then within each priority, by name alphabetically.</p>

<p>Ordering alphabetically is easy enough:  </p>

<pre><code>people = _.orderBy(people, 'name');
</code></pre>

<p>But how would I sort by priority in the way I want? </p>
