From e9afb4b86e121af0141bbf436c9c562571e6a3a6 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 15 Jun 2020 20:04:32 -0600 Subject: [PATCH] Fix ordering of recent rooms in the new room list Fixes https://github.com/vector-im/riot-web/issues/14009 --- src/stores/room-list/algorithms/tag-sorting/RecentAlgorithm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/room-list/algorithms/tag-sorting/RecentAlgorithm.ts b/src/stores/room-list/algorithms/tag-sorting/RecentAlgorithm.ts index df84c051f0..4e4df6c9d6 100644 --- a/src/stores/room-list/algorithms/tag-sorting/RecentAlgorithm.ts +++ b/src/stores/room-list/algorithms/tag-sorting/RecentAlgorithm.ts @@ -75,7 +75,7 @@ export class RecentAlgorithm implements IAlgorithm { }; return rooms.sort((a, b) => { - return getLastTs(a) - getLastTs(b); + return getLastTs(b) - getLastTs(a); }); } }