How to sort an array of objects in ascending order? : <p>I have a data like,</p>

<pre><code>option = [
  {
    "field": "bac",
    "title": "BAC",
    "hidden": true
  },
  {
    "field": "vm",
    "title": "VM",
    "hidden": false
  },
  {
    "field": "cad",
    "title": "CAD",
    "hidden": true
  },
  {
    "field": "boom",
    "title": "BOOM",
    "hidden": true
  }
];
</code></pre>

<p>Now i have to sort based on title, can someone help me how do i do that?</p>

<p>I tried like,</p>

<pre><code>_.each(option, function(e)){
   arr.push(e.title);
}

arr.sort();
</code></pre>

<p>now getting every object and arranging, is that anyway to get this done more precise..</p>

<p>Thanks,</p>
