fix alphabetical order of QR Sets

This commit is contained in:
LenAnderson
2024-07-16 11:00:59 -04:00
parent 25c86b65ac
commit 2a9ba4aec4
3 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ export class QuickReplySetLink {
this.set = QuickReplySet.get(set.value);
this.update();
});
QuickReplySet.list.forEach(qrs=>{
QuickReplySet.list.toSorted((a,b)=>a.name.toLowerCase().localeCompare(b.name.toLowerCase())).forEach(qrs=>{
const opt = document.createElement('option'); {
opt.value = qrs.name;
opt.textContent = qrs.name;