I'm trying to sort an array of sizes part of an object array(shoes). The orderBy filter does not work. I get the sizes displayed in random order.
<div class="choice" ng-repeat="store in pc.stores track by $index">
<div class="sizes" <span ng-repeat="size in store.shoes[0].sizes | orderBy:size track by $index">{{size}}</span></div>
</div>
Here's the screen grab of console.log
I've also tried the orderBy filter in quotes ('size'). It still doesn't work. I don't know what i'm missing. Thanks.
I have written split as custom filter. Hope this will help you.