You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-15 01:24:25 +02:00
Implement oldest photo based sorting. fixes #675
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user