Date grouping: follow the album's sort order

When groupByDate was enabled the gallery re-sorted unconditionally
newest-first, discarding the album.order that immich.ts had already
applied. Branch the grouping sort on share.album.order so 'asc' sorts
ascending, keeping the descending default for individual shares and
albums with no order set.

Fixes #271
This commit is contained in:
trecoool
2026-07-25 21:46:44 +02:00
parent aa6183a95d
commit db7125f4f4
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ Group the gallery's thumbnails by date, with a header above each group.
- `true` / `"month"` - month headers like "December 2024".
- `"day"` - day headers like "25 December 2024".
Grouping uses each photo's local "taken" date (matching Immich's own timeline), and sorts photos newest-first. Items missing a creation date end up under an "Undated" bucket at the end (or render without any header when the whole gallery is undated).
Grouping uses each photo's local "taken" date (matching Immich's own timeline). Photos follow the album's own sort order from Immich - "Oldest first" puts the earliest group at the top, "Newest first" the most recent - and default to newest-first for shares with no album order. Items missing a creation date end up under an "Undated" bucket at the end (or render without any header when the whole gallery is undated).
> [!IMPORTANT]
> Requires **"Show metadata"** to be enabled on the share in Immich. When that's off, Immich strips creation dates from the assets it returns to IPP, so grouping won't work.