Skip to content

High performance self-hosted photo and video management solution.

Sort album assets from newest to oldest (#3444)

cfitzw7147486b6a0e
diff --git a/server/src/immich/api-v1/album/album-repository.ts b/server/src/immich/api-v1/album/album-repository.ts
index 42cdbdfb55..200b7d0970 100644
--- a/server/src/immich/api-v1/album/album-repository.ts
+++ b/server/src/immich/api-v1/album/album-repository.ts
@@ -36,7 +36,7 @@ export class AlbumRepository implements IAlbumRepository {
},
order: {
assets: {
- fileCreatedAt: 'ASC',
+ fileCreatedAt: 'DESC',
},
},
});