30
rated 0 times
[
33]
[
3]
/ answers: 1 / hits: 24488
/ 11 Years ago, wed, may 29, 2013, 12:00:00
I have an object that looks like this:
{
03 : Apple,
02 : Banana,
01 : Cranberry
}
and it orders it by the keys (which makes sense) in my ng-repeat. This results in the labels being out of alphabetical order (cranberry being first). How do I make it so that it orders my repeater by the values (alphabetically)?
I can supply it in the order I want to the ng-repeat, but it sorts it by the key. If I could make it not do that, then that would also work.
More From » sorting