javascript - Angular js - order by not working on multidimensional array -


i not able sort multi dimensional array using angular js filter, please find code in link below.

http://plnkr.co/edit/dpzl1rafhjjog5odf1qc?p=preview

  <body ng-controller="mycontroller">     <ul>       <li ng-repeat="item in items|orderby:items.node_id:1">{{item.node_id}}         - {{item.basic.readable_date}}-{{item.node_id}}       </li>      </ul>   </body> 

orderby works arrays. since you're using object in ng-repeat - i'm quite surprised possible - orderby doesn't anything.

have @ this plnkr.


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -