Order category by AtoZ (#769)
This commit is contained in:
parent
7c3a32641c
commit
ddacdbf25f
1 changed files with 2 additions and 2 deletions
|
@ -80,10 +80,10 @@ function Home({ spaceId }) {
|
||||||
<RoomsCategory name="People" roomIds={directIds.sort(roomIdByActivity)} drawerPostie={drawerPostie} />
|
<RoomsCategory name="People" roomIds={directIds.sort(roomIdByActivity)} drawerPostie={drawerPostie} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{ isCategorized && [...categories].map(([catId, childIds]) => {
|
{ isCategorized && [...categories.keys()].sort(roomIdByAtoZ).map((catId) => {
|
||||||
const rms = [];
|
const rms = [];
|
||||||
const dms = [];
|
const dms = [];
|
||||||
childIds.forEach((id) => {
|
categories.get(catId).forEach((id) => {
|
||||||
if (directs.has(id)) dms.push(id);
|
if (directs.has(id)) dms.push(id);
|
||||||
else rms.push(id);
|
else rms.push(id);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue