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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -