mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-22 01:15:16 +00:00
Sort the list of memberships
This commit is contained in:
@ -30,5 +30,7 @@ pub fn get_user_memberships(user_id: &UserID) -> ResultBoxError<Vec<UserMembersh
|
||||
list.push(UserMembership::Conversation(conv))
|
||||
}
|
||||
|
||||
list.sort_by(|a, b| b.cmp(a));
|
||||
|
||||
Ok(list)
|
||||
}
|
Reference in New Issue
Block a user