I am trying to use orderBy
in ng-repeat
using angular js.but it fail to sort my list .here is my code ?
how to sort my code
https://jsfiddle.net/7MhLd/1921/
var myApp = angular.module('myApp', []);
function MyCtrl($scope) {
$scope.lines = {
"a" : {name:"bb"},
"aa": {name: 'aa'},
"zz": {name:"zz"},
"oo": {name: 'oo'},
"kk": {name:"k"},
"j" : {name: "a"},
"n" : {name:"n"},
"c" : {name: "c"}
}
}