Skip to content

Conversation

@rahul-kumar-saini
Copy link

Description

  • Almost all photo views in Immich are sorted by creation date, strangely however, the folder view is sorted by filename
  • Add support for sorting your content in the folder view by createdAt and not just the default filename
    • I almost feel as though the default here should be creation date if anything
  • Implemented as an additional setting inside Storage Template settings
  • Updated SDK based on open-api spec
  • Partially implements features requested in this discussion post

How Has This Been Tested?

Thoroughly tested locally

  • Verified folder sorting remains the same before/after the change (keep filename as default)
  • Verified response of /api/system-config correctly contains new folderContentOrder
  • Verified setting applies successfully
  • Verified folder content sorting order does indeed reflect the updated setting

Screenshots

Filename based ordering (default, current behaviour)

Screenshot 2025-12-18 at 8 06 13 PM

New dropdown setting under Storage Template settings

Screenshot 2025-12-18 at 8 06 34 PM Screenshot 2025-12-18 at 8 06 40 PM

Changing and saving to new "Creation date" order

Screenshot 2025-12-18 at 8 06 49 PM

Creation date based order after applying the setting

Screenshot 2025-12-18 at 8 07 03 PM

API Changes

The /api/system-config response now adds storageTemplate.folderContentOrder with value of "date" or "name":

    {
        ...
        "storageTemplate": {
            ...
++++        "folderContentOrder": "date"
        },
        ...
    }

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

Please describe to which degree, if any, an LLM was used in creating this pull request.

  • Claude 4.5 Opus was used for discovery of relevant queries, front end views, and backend system config settings code

@immich-push-o-matic
Copy link

immich-push-o-matic bot commented Dec 19, 2025

Label error. Requires exactly 1 of: changelog:.*. Found: 🖥️web, 🗄️server. A maintainer will add the required label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant