Sorting dropdown (filled with dictionaries) in AngularJS -
i have items 2-d dictionary : each element of following form :
{'key': {'count': value}}
i sort dropdown using count :
<select ng-model="selected" ng-options="k (k,v) in items | orderby:'v.count'"></select>
unfortunately, tried above not working (it doesn't sort) , not sure how so.
thanks
Comments
Post a Comment