I\'m populating a dropdown through the use of ng-options which is hooked to a controller that in turn is calling a service. Unfortunately the data coming in is a mess and I
For anyone who wants to sort the variable in third layer:
you can do it like this