projects
/
cinny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7291932
)
Fix loading on older browsers (#424)
author
Krishan
<33421343+kfiven@users.noreply.github.com>
Wed, 23 Mar 2022 13:03:19 +0000
(18:33 +0530)
committer
GitHub
<noreply@github.com>
Wed, 23 Mar 2022 13:03:19 +0000
(18:33 +0530)
src/util/sort.js
patch
|
blob
|
history
diff --git
a/src/util/sort.js
b/src/util/sort.js
index 72ba3c43f742b8287c053807a7b354ae5abebeb8..f9a0b7908338188a3d4b59a9a27472221c85bbec 100644
(file)
--- 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.replace
All('#'
, '');
- bName = bName.replace
All('#'
, '');
+ aName = aName.replace
(/#/g
, '');
+ bName = bName.replace
(/#/g
, '');
if (aName.toLowerCase() < bName.toLowerCase()) {
return -1;