Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 28de4f2

Browse files
deedeeskyhit
authored andcommitted
sort scorecard dropdown list
1 parent 2b11869 commit 28de4f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/web/scripts/launch/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,11 @@ function getReviewScorecards(typeId) {
10691069
success: function(jsonResult) {
10701070
handleJsonResult(jsonResult,
10711071
function(result) {
1072+
result.sort(function(sc1, sc2) {
1073+
var a = sc1.scorecardName.toLowerCase();
1074+
var b = sc2.scorecardName.toLowerCase();
1075+
return a < b ? -1 : ((a > b) ? 1 : 0);
1076+
})
10721077
returnValue = result;
10731078
},
10741079
function(errorMessage) {

0 commit comments

Comments
 (0)