1
0
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:
2020-07-13 11:44:37 +02:00
parent b5bcb3e8c7
commit 748fa64609
4 changed files with 31 additions and 3 deletions

View File

@ -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)
}