From 5fd249677482f1bbc038a4f7bcc455c799642773 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 28 Feb 2023 22:57:17 -0600 Subject: [PATCH] fix(server): album sorted incorrectly (#1901) --- server/apps/immich/src/api-v1/album/album-repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/immich/src/api-v1/album/album-repository.ts b/server/apps/immich/src/api-v1/album/album-repository.ts index e0cf3d6281..c76691b6b4 100644 --- a/server/apps/immich/src/api-v1/album/album-repository.ts +++ b/server/apps/immich/src/api-v1/album/album-repository.ts @@ -80,7 +80,7 @@ export class AlbumRepository implements IAlbumRepository { const queryProperties: FindManyOptions = { relations: { sharedUsers: true, assets: true, sharedLinks: true, owner: true }, select: { assets: { id: true } }, - order: { assets: { fileCreatedAt: 'ASC' }, createdAt: 'ASC' }, + order: { createdAt: 'DESC' }, }; let albumsQuery: Promise;