I have simple object:
"socials": {
"f": "#/facebook/",
"B": "#/behance/",
"d": "#/dribble/",
"L": "#/linkedin/",
"P": "#/pinterest/"
}
When I try to use ng-repeat="(key, value) in data.socials"
it sorts like this: B L P d f.
$index catches wrong index, just as it is ordered by already. How can I order it correctly as it is in jSON file? Or maybe how can I get correct index to use orderBy: correctIndex
? I found a fiddle that shows an issue exactly like this: http://jsfiddle.net/zMjVp/