Fix loading on older browsers (#424)
This commit is contained in:
parent
7291932a0b
commit
fe997d8b01
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ export function roomIdByAtoZ(aId, bId) {
|
||||||
|
|
||||||
// remove "#" from the room name
|
// remove "#" from the room name
|
||||||
// To ignore it in sorting
|
// To ignore it in sorting
|
||||||
aName = aName.replaceAll('#', '');
|
aName = aName.replace(/#/g, '');
|
||||||
bName = bName.replaceAll('#', '');
|
bName = bName.replace(/#/g, '');
|
||||||
|
|
||||||
if (aName.toLowerCase() < bName.toLowerCase()) {
|
if (aName.toLowerCase() < bName.toLowerCase()) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue