hi to all,

 i am having status field it consist of completed,canceled,ongoing....

i want to apply orderBy to display the list as 
1.completed,2.canceled,3.ongoing..


i tried like this


angular.module('myApp', [])
    .controller('Ctrl', function($scope) {
        $scope.myCards = [
            {firstName: 'John', lastName: 'Smith',status:'true'},
            {firstName: 'Eleanor', lastName: 'Rigby',status:'test'},
            {firstName: 'Maxwell', lastName: 'Hammer',status:'false'},
            {firstName: 'Buzz', lastName: 'Aldrin',status:'false'},
            {firstName: 'Neil', lastName: 'Armstrong',status:'true'},
                 {firstName: 'sirish', lastName: 
'Armstrong',status:'test'},                      {firstName: 'kumar', 
lastName: 'Armstrong',status:'true'},
                 {firstName: 'reddy', lastName: 'Armstrong',status:'false'}
        ];
    });


<div ng-app="myApp" ng-controller="Ctrl">
    <div ng-repeat="card in myCards | 
orderBy:[status']:['test','false','true']">
        {{card.firstName}} =={{card.lastName}}== {{card.status}}
       
    </div>
</div>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to