title: How to use _.filter to sort by name and ranking?
body: <p>I have the following:</p>
  <pre><code>Emojis = {
    ':smile:' : { people: true, ranking: 1 },
    ':gring:' : { people: true, ranking: 2 },
    ':wink:' : { people: true, ranking: 3 },
    ':smirk:' : { people: true }
  };
  
  EmojiNames = _.keys(Emojis);
  
  EmojiCommon = _.filter(EmojiNames, function (name) {
    if (Emojis[name].people) {
      return name;
    } else {
      return false;
    }
  });
  </code></pre>
  <p>Right now, I have EmojiCommon, returning items that match the name == &quot;people&quot; how can I have the EmojiCommon function also filter by ranking. Where item 1 would be first and anything without a ranking below all items with a ranking?</p>