angularjs - How to use orderBy for a property of an array of arrays in ng-repeat -


is there way order following example data set value property or specific array index?:

var rows = [     [         {             value: 'hello',             label: 'world'         },         {             value: 'hello1',             label: 'world1'         },         {             value: 'hello2',             label: 'world2'         }     ],     [         {             value: 'asd',             label: 'jkl'         },         {             value: 'asd1',             label: 'jkl1'         },         {             value: 'asd2',             label: 'jkl2'         }     ] ]; 

i tried repeat statement:

ng-repeat="row in rows | orderby:'-[1].value'" 

it's not throwing error doesn't ordering.

change ng-repeat this. order rows values of first column. this represents row.

ng-repeat="row in rows | orderby:'this[0].value'" 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -