diff --git a/mobile/lib/services/sync.service.dart b/mobile/lib/services/sync.service.dart index e23c2d1b1b..658bffc44f 100644 --- a/mobile/lib/services/sync.service.dart +++ b/mobile/lib/services/sync.service.dart @@ -507,7 +507,7 @@ class SyncService { List onDevice, [ Set? excludedAssets, ]) async { - onDevice.sort((a, b) => a.id.compareTo(b.id)); + onDevice.sort((a, b) => a.localId!.compareTo(b.localId!)); final inDb = await _albumRepository.getAll(remote: false, sortBy: AlbumSort.localId); final List deleteCandidates = [];