title: How to Reorder the Array of object properties using javascript or lodash
body: <p>i am having the array of objects That i am Going to Write into the Excel file. I am having soo many array of objects like this</p>
  
  <pre><code>[{'FirstName':'abc','Reg-no':1234,'branch':'mech','ReportDate':'11/12/2014','LastName':'HR'},{'FirstName':'xyz','Reg-no':1235,'branch':'CS','ReportDate':'11/12/2015','LastName':'BC'},{'FirstName':'pqr','Reg-no':1236,'branch':'IS','ReportDate':'11/12/2016','LastName':'TY'}]
  </code></pre>
  
  <p>I want to reorder the objects properties like this so that in the Excel First column it Starts from the reg No.</p>
  
  <pre><code> [{'Reg-no':1234,'ReportDate':'11/12/2014','FirstName':'abc','LastName':'HR','branch':'mech'},
       {'Reg-no':1235,'ReportDate':'11/12/2015','FirstName':'xyz','LastName':'BC','branch':'CS'},
       {'Reg-no':1236,'ReportDate':'11/12/2016','FirstName':'pqr','LastName':'TY','branch':'IS'}
       ]
  </code></pre>
  
  <p>Can anybody Help me on this.</p>