dnet45/modules/uoa-repository-dashboard-gui/trunk/src/app/domain/utilities.ts @ 62103
1 |
|
---|---|
2 |
export function sortAlpgabetically (array: any[]) { |
3 |
array.sort(function(a,b){ |
4 |
if(a < b ){ |
5 |
return -1; |
6 |
} else if(a > b ){ |
7 |
return 1; |
8 |
} else { |
9 |
return 0; |
10 |
}
|
11 |
});
|
12 |
}
|