AngularJs sorting nested multidimensional JSON data by property

56 Views Asked by At

I have nested multidimensional JSON data from an API url. I have been able to loop and display all the data with angularjs using four nested ng-repeat rows. I have tried to sort the data by a specific property with orderBy. Sorting is working fine in second ng-repeat row: orderBy : 'person.lastName' but for some reason the same sorting is not working with the fourth ng-repeat row, for example: orderBy : 'stat.points'. Thanks for everyone who could help!

Here is my CodePen test project.

0

There are 0 best solutions below