In my angular app I\'m trying to display JSON data in a table. The data looks like this:
$scope.data = { \"EVENT NAME\":\"Free Event\", \"ORDER ID
Object properties don't have a natural order.
You can achieve what you're looking for with a slightly different Object:
$scope.data = { columns: [ { "EVENT NAME":"Free Event", "priority": 0 }, { "ORDER_ID":311575707, "priority": 1 }, ... ] }