$scope.partnership.sort(function compare(a, b) { if (parseInt(a.displayOrder) < parseInt(b.displayOrder)) return -1; if (parseInt(a.displayOrder) > parseInt(b.displayOrder)) return 1; return 0; } );
No comments:
Post a Comment