I do have objects of the following form:
item = {key1: {count: x}} where x is an integer
I would like to sort my options in my template using count. I am using ng-options in the following way:
data-ng-options="key1 for (key1, sub_item) in item | orderBy: 'sub_item.count'"
Unfortunately, the sort isn't working. Any idea how I could achieve this ?