Skip to content
Snippets Groups Projects
Commit db24f174 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix jumpy room list, when sort order is ambiguous

parent a8b22e49
No related branches found
No related tags found
No related merge requests found
......@@ -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_) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment