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

@ -827,7 +827,7 @@ export class QuickReply {
const tpl = dom.querySelector('#qr--ctxItem');
const linkList = dom.querySelector('#qr--ctxEditor');
const fillQrSetSelect = (/**@type {HTMLSelectElement}*/select, /**@type {QuickReplyContextLink}*/ link) => {
[{ name: 'Select a QR set' }, ...QuickReplySet.list].forEach(qrs => {
[{ name: 'Select a QR set' }, ...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;