diff --git a/server/apps/immich/src/api-v1/share/shared-link.repository.ts b/server/apps/immich/src/api-v1/share/shared-link.repository.ts index 48ce80de09..d0ca0edd19 100644 --- a/server/apps/immich/src/api-v1/share/shared-link.repository.ts +++ b/server/apps/immich/src/api-v1/share/shared-link.repository.ts @@ -70,6 +70,16 @@ export class SharedLinkRepository implements ISharedLinkRepository { }, order: { createdAt: 'DESC', + assets: { + createdAt: 'ASC', + }, + album: { + assets: { + assetInfo: { + createdAt: 'ASC', + }, + }, + }, }, }); }