From b5dce0a753c87771b6b37e8843baf6fd87d1ec8d Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Mon, 11 Sep 2023 13:24:33 +0200 Subject: [PATCH] Implement oldest photo based sorting. fixes #675 --- src/frontend/app/ui/gallery/navigator/sorting.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/app/ui/gallery/navigator/sorting.service.ts b/src/frontend/app/ui/gallery/navigator/sorting.service.ts index 7a5330e2..f7287970 100644 --- a/src/frontend/app/ui/gallery/navigator/sorting.service.ts +++ b/src/frontend/app/ui/gallery/navigator/sorting.service.ts @@ -239,7 +239,7 @@ export class GallerySortingService { Config.Gallery.enableDirectorySortingByDate === true ) { c.directories.sort( - (a, b) => a.lastModified - b.lastModified + (a, b) => (a.oldestMedia || a.lastModified) - (b.oldestMedia || b.lastModified) ); break; }