Add comment about what sort we're trying to achieve
This commit is contained in:
parent
b3c8f89d0d
commit
96bda71386
|
@ -89,6 +89,7 @@ class RoomDirectoryViewModel extends ViewModel {
|
|||
});
|
||||
this._roomCardViewModelsFilterMap = new ApplyMap(this._roomCardViewModelsMap);
|
||||
this._roomCardViewModels = this._roomCardViewModelsFilterMap.sortValues((a, b) => {
|
||||
// Sort by the number of joined members descending (highest to lowest)
|
||||
if (b.numJoinedMembers > a.numJoinedMembers) {
|
||||
return 1;
|
||||
} else if (b.numJoinedMembers < a.numJoinedMembers) {
|
||||
|
|
Loading…
Reference in New Issue