Fix jumpy room list, when sort order is ambiguous
This commit is contained in:
parent
a8b22e49c3
commit
db24f174b1
@ -384,7 +384,7 @@ RoomList::sortRoomsByLastMessage()
|
|||||||
{
|
{
|
||||||
isSortPending_ = false;
|
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;
|
int newIndex = 0;
|
||||||
for (const auto &roomWidget : rooms_sort_cache_) {
|
for (const auto &roomWidget : rooms_sort_cache_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user