sort array of objects according to month name? : <p>I have a array of objects with months and i want to sort them in a specific order such as fiscal year format how do i do that?</p>

<pre><code>(12) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
0:{subscribedCustomers: 1, req_count: 1, revenue: 1532.82, getMonth: "April", totalComp: 1}
1:{subscribedCustomers: 0, req_count: 0, revenue: null, getMonth: "June", totalComp: 0}
2:{subscribedCustomers: 1, req_count: 1, revenue: 2948.82, getMonth: "May", totalComp: 1}
3:{getMonth: "July", totalComp: 0}
4:{getMonth: "August", totalComp: 0}
5:{getMonth: "September", totalComp: 0}
6:{getMonth: "October", totalComp: 0}
7:{getMonth: "November", totalComp: 0}
8:{getMonth: "December", totalComp: 0}
9:{getMonth: "January", totalComp: 0}
10:{getMonth: "February", totalComp: 0}
11:{getMonth: "March", totalComp: 0}
</code></pre>

<p>How do i sort it to months in the following format</p>

<p>[ 
  'April', 
  'May', 
  'June', 
  'July', 
  'August', 
  'September', 
  'October', 
  'November', 
  'December',
  'January', 
  'February', 
  'March'];</p>
