Fix suggested shift sorting
This commit is contained in:
parent
91dfa2aa50
commit
4333754430
@ -533,7 +533,7 @@
|
|||||||
if (shifts.length === 0) {
|
if (shifts.length === 0) {
|
||||||
txtSuggested.textContent += "none available";
|
txtSuggested.textContent += "none available";
|
||||||
} else {
|
} else {
|
||||||
shifts.sort();
|
shifts.sort((a, b) => { return a - b });
|
||||||
txtSuggested.textContent += shifts.join(", ");
|
txtSuggested.textContent += shifts.join(", ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user