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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -