Upon receiving data from the server in JSON format, I have noticed that it is not displaying in the expected order:
[{
"outlet_id": 83,
"outlet_name": "My Outlet",
"address": "My Outlet",
"shop_number": "123",
"street": "123",
"building_no": "52",
"key_location": "Location 123",
"mohallah": "Mohalla 123",
"landline": "1235869",
"owner_name": "Owner",
"Manufecture": "A",
"BrandName": "B",
"Variant": "C",
"BRANDDiscription": "D",
"SIZE": "E",
"Variant/Promotions": null,
"Segment": null
}]
When using ng-repeat to display this data, the attributes do not appear in the same order as in the original JSON. Here is an example of how I am attempting to display the data:
<td ng-repeat="(key, value) in vm.outletFieldAttrsList[0]">{{value}}</td>
If anyone has any insights or solutions on how to maintain the correct order of attributes when displaying JSON data, I would greatly appreciate your help.