Skip to content

Commit

Permalink
Implement oldest photo based sorting. fixes #675
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Sep 11, 2023
1 parent 8c083ed commit b5dce0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/app/ui/gallery/navigator/sorting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b5dce0a

Please sign in to comment.