I have json data being fetched word a wordpress plog using a controller. It's displaying the categories alphabetical but I'd rather have it display is ascending order. Is there a simple way to do this?
I'm new to angularjs (and javascript in general).
My HTML is:
I'm new to angularjs (and javascript in general).
My HTML is:
Code:
<ion-list>
<div class="list cat">
<a ng-repeat="category in categories"
href="#/category/{{category.id}}"
class="item item-thumbnail-left catthumb">
<img ng-src="{{category.acf.thumbnail.url}}" class="catthumb">
<span style="font-size: 21px; font-weight: 400;">{{category.name}}</span>
</a>
</div>
</ion-list>