Bladeren bron

Sort album participants list

Neeraj Gupta 2 jaren geleden
bovenliggende
commit
dbffa7cd8b
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      lib/ui/sharing/album_participants_page.dart

+ 2 - 0
lib/ui/sharing/album_participants_page.dart

@@ -72,7 +72,9 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
     final splitResult =
     final splitResult =
         widget.collection.getSharees().splitMatch((x) => x.isViewer);
         widget.collection.getSharees().splitMatch((x) => x.isViewer);
     final List<User> viewers = splitResult.matched;
     final List<User> viewers = splitResult.matched;
+    viewers.sort((a, b) => a.email.compareTo(b.email));
     final List<User> collaborators = splitResult.unmatched;
     final List<User> collaborators = splitResult.unmatched;
+    collaborators.sort((a, b) => a.email.compareTo(b.email));
 
 
     return Scaffold(
     return Scaffold(
       body: CustomScrollView(
       body: CustomScrollView(