title: how to custom sort an array based on its status followed by another field?
body: <p>So I have an array, I need to sort it based on status in the following order i.e. failure->warn->completed.
  Normally, I use lodash for sorting but its a bit of complex order here. It also needs to sort according to run after sorting with run. Im not sure how to start on this.</p>
  
  <pre><code>var arr = [{"status":"failure","name":"one","run":1},
  {"status":"failure","name":"two","run":2},
  {"status":"warn","name":"three","run":1},
  {"status":"warn","name":"four","run":2},
  {"status":"completed","name":"five","run":1}]
  </code></pre>