Added manual group changing, stbility improvements.
This commit is contained in:
12
src/util/sorters.js
Normal file
12
src/util/sorters.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export function alphaSort(a, b) {
|
||||
let A;
|
||||
let B;
|
||||
|
||||
A = a ? a.toLowerCase() : "";
|
||||
B = b ? b.toLowerCase() : "";
|
||||
if (A < B)
|
||||
//sort string ascending
|
||||
return -1;
|
||||
if (A > B) return 1;
|
||||
return 0; //default return value (no sorting)
|
||||
}
|
||||
Reference in New Issue
Block a user