diff --git a/src/backend/models/items.py b/src/backend/models/items.py index 71e0dc0e..3063cf56 100644 --- a/src/backend/models/items.py +++ b/src/backend/models/items.py @@ -96,11 +96,15 @@ class Room(ModelItem): return ( self.left, other.inviter_id, + other.mentions, + other.unreads, other.last_event_date, (self.display_name or self.id).lower(), ) < ( other.left, self.inviter_id, + self.mentions, + self.unreads, self.last_event_date, (other.display_name or other.id).lower(), )