I am looking to customize the order of an Object-array using ng-repeat based on their index keys in ascending order.
$scope.paneContainer = {books:[{}] } ;
$scope.paneContainer.books[0].science = { title:"science", content:"web/app/views/partials/science.html" };
$scope.paneContainer.books[0].alphabets = { title:"alphabets", content:"web/app/views/partials/alphabets.html" };
$scope.paneContainer.books[0].folks = { title:"folks", content:"web/app/views/partials/folks .html" };
Implementation on the front end:
<ul class="ui-tabs-nav">
<li ng-repeat="tab in paneContainer.books[0] track by $index | orderBy:$index " class="">
<strong>{{tab.title}}</strong></a>
</li>
</ul>
The expected output should be:
Currently, Angular arranges the list alphabetically.