sort story owners by name

pull/365/head
Callum White 2017-11-27 13:30:00 +00:00
parent 9b75080329
commit 5fd06e721f
1 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,14 @@
$scope.workInProgress = [];
function compare(a, b) {
if (a.owners[0].name < b.owners[0].name)
return -1;
if (a.owners[0].name > b.owners[0].name)
return 1;
return 0;
}
function getPivotalStories() {
var projectId = '1993279';
@ -65,6 +73,7 @@
});
$scope.workInProgress.push(story);
$scope.workInProgress.sort(compare);
});
});
});