mirror of
https://github.com/immich-app/immich.git
synced 2025-01-15 08:16:48 +01:00
Sort albums in backup selection alphabetically with Recent (isAll) at top.
This commit is contained in:
parent
c0aa2e52c3
commit
afca978b88
1 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import 'package:collection/collection.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:immich_mobile/entities/album.entity.dart';
|
||||
import 'package:immich_mobile/entities/asset.entity.dart';
|
||||
|
@ -15,7 +16,9 @@ class AlbumMediaRepository implements IAlbumMediaRepository {
|
|||
await PhotoManager.getAssetPathList(
|
||||
hasAll: true,
|
||||
);
|
||||
return assetPathEntities.map(_toAlbum).toList();
|
||||
return assetPathEntities.map(_toAlbum).sortedBy((a) {
|
||||
return a.isAll ? "" : a.name.toLowerCase();
|
||||
}).toList();
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue