Fix loading on older browsers (#424)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user