mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix jumpy room list, when sort order is ambiguous
This commit is contained in:
parent
a8b22e49c3
commit
db24f174b1
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ RoomList::sortRoomsByLastMessage()
|
|||
{
|
||||
isSortPending_ = false;
|
||||
|
||||
std::sort(begin(rooms_sort_cache_), end(rooms_sort_cache_), room_sort{});
|
||||
std::stable_sort(begin(rooms_sort_cache_), end(rooms_sort_cache_), room_sort{});
|
||||
|
||||
int newIndex = 0;
|
||||
for (const auto &roomWidget : rooms_sort_cache_) {
|
||||
|
|
Loading…
Reference in a new issue