I want to sort the Object keys so that they are all matching in order. In the below code you can see the second key differs,
$scope.myData = [
{
"EmployeeId": "1",
"OTHINC1": "200",
"OTHINC2": "100"
},
{
"EmployeeId": "2",
"OTHINC2": "300",
"OTHINC1": "100",
"OTHINC3": "200",
}
];
How to sort the Object Keys?