title: Sort an array of object by timestamp
body: <p>I have the following object :</p>
  
  <pre><code>var jsonList = {
     ref : "TEST1",
     inventory : [
           {
              id : "a1",
              date : 1401462270
           },
           {
              id : "a2",
              date : 1414836094
           }
     ]
  }
  </code></pre>
  
  <p>inventory array is not sorted by date, i would like to sort this array of object by date. The more recent in first position.</p>
  
  <p>How can i do that ?</p>