http://jsfiddle.net/aBccw/
<div ng-options="f.name for f in JSONArray | orderBy:'f.name'" ng-model="selected" ></div>
This is just dirty representation of actual code, it might contain syntactical errors, But what my question is that I don't want whole object in ng-model. I need a property of Object say age. But if I write
<div ng-options="f.age as f.name for f in JSONArray | orderBy:'f.age'"......
orderBy won't work correctly. How can I make orderBy work with the latter one.