diff --git a/src/util/sort.js b/src/util/sort.js index 72ba3c4..f9a0b79 100644 --- a/src/util/sort.js +++ b/src/util/sort.js @@ -13,8 +13,8 @@ export function roomIdByAtoZ(aId, bId) { // remove "#" from the room name // To ignore it in sorting - aName = aName.replaceAll('#', ''); - bName = bName.replaceAll('#', ''); + aName = aName.replace(/#/g, ''); + bName = bName.replace(/#/g, ''); if (aName.toLowerCase() < bName.toLowerCase()) { return -1;