[Feature] Sort shared albums #1117

Closed
opened 2026-02-05 00:31:18 +03:00 by OVERLORD · 11 comments
Owner

Originally created by @alextran1502 on GitHub (Jul 17, 2023).

Discussed in https://github.com/immich-app/immich/discussions/3307

Originally posted by vulcanjedi July 16, 2023

The feature

Currently the timeline is defaulted and only sortable by descending order (new to old) but shared albums seem to be ascending (old to new)
I think this should be uniformly defaulted to descending (newest first ) across Immich or configurable via user settings?
Right now a shared album means user has to scroll down 40 yrs of pics for the newest ones!?

Past few releases have been massive steps and huge performance improvements....thank you!

Platform

  • Server
  • Web
  • Mobile
Originally created by @alextran1502 on GitHub (Jul 17, 2023). ### Discussed in https://github.com/immich-app/immich/discussions/3307 <div type='discussions-op-text'> <sup>Originally posted by **vulcanjedi** July 16, 2023</sup> ### The feature Currently the timeline is defaulted and only sortable by descending order (new to old) but shared albums seem to be ascending (old to new) I think this should be uniformly defaulted to descending (newest first ) across Immich or configurable via user settings? Right now a shared album means user has to scroll down 40 yrs of pics for the newest ones!? Past few releases have been massive steps and huge performance improvements....thank you! ### Platform - [X] Server - [X] Web - [X] Mobile</div>
Author
Owner

@alceil commented on GitHub (Jul 19, 2023):

Can I take a dab at this issue? @alextran1502

@alceil commented on GitHub (Jul 19, 2023): Can I take a dab at this issue? @alextran1502
Author
Owner

@alextran1502 commented on GitHub (Jul 19, 2023):

@alceil yes please go ahead

@alextran1502 commented on GitHub (Jul 19, 2023): @alceil yes please go ahead
Author
Owner

@alceil commented on GitHub (Jul 19, 2023):

Thanks @alextran1502

@alceil commented on GitHub (Jul 19, 2023): Thanks @alextran1502
Author
Owner

@cfitzw commented on GitHub (Jul 27, 2023):

Taking a stab here that it might be related to line 39 in:
server/src/immich/api-v1/album/album-repository.ts

fileCreatedAt: 'ASC' --> fileCreatedAt: 'DESC'

Hopefully I am on the right track?

@cfitzw commented on GitHub (Jul 27, 2023): Taking a stab here that it might be related to line 39 in: server/src/immich/api-v1/album/album-repository.ts fileCreatedAt: 'ASC' --> fileCreatedAt: 'DESC' Hopefully I am on the right track?
Author
Owner

@magicedy commented on GitHub (Jul 29, 2023):

It seems this only works effectively on the web version, but there's no effect in the app version(Android v1.71.0)

@magicedy commented on GitHub (Jul 29, 2023): It seems this only works effectively on the web version, but there's no effect in the app version(Android v1.71.0)
Author
Owner

@magicedy commented on GitHub (Jul 30, 2023):

neither iOS, please help confirm this issue @cfitzw @alextran1502

@magicedy commented on GitHub (Jul 30, 2023): neither iOS, please help confirm this issue @cfitzw @alextran1502
Author
Owner

@alextran1502 commented on GitHub (Jul 30, 2023):

@magicedy yep, the mobile app use the local database to query so we need to fix the order of the local database as well

@alextran1502 commented on GitHub (Jul 30, 2023): @magicedy yep, the mobile app use the local database to query so we need to fix the order of the local database as well
Author
Owner

@cfitzw commented on GitHub (Jul 30, 2023):

@magicedy The updated sorting looks to work as expected for albums made with Immich (whether on web or mobile).

The OS-based albums, at least for iOS, appear to still use oldest to newest (sound like the same is true for Android). We will have to see if mobile devices allow sorting their albums.

I also plan to make some further improvements to address updating the thumbnails to be the most recent photo (to mimic iOS behavior), except in cases where the album thumbnail was manually set.

I’m just getting into this awesome project, so getting my feet wet with these improvements. Very well done @alextran1502 , I’ve tried many projects and this one takes the cake, and I’ll do what I can to contribute further.

@cfitzw commented on GitHub (Jul 30, 2023): @magicedy The updated sorting looks to work as expected for albums made with Immich (whether on web or mobile). The OS-based albums, at least for iOS, appear to still use oldest to newest (sound like the same is true for Android). We will have to see if mobile devices allow sorting their albums. I also plan to make some further improvements to address updating the thumbnails to be the most recent photo (to mimic iOS behavior), except in cases where the album thumbnail was manually set. I’m just getting into this awesome project, so getting my feet wet with these improvements. Very well done @alextran1502 , I’ve tried many projects and this one takes the cake, and I’ll do what I can to contribute further.
Author
Owner

@alextran1502 commented on GitHub (Jul 30, 2023):

will be fixed in https://github.com/immich-app/immich/pull/3469

@alextran1502 commented on GitHub (Jul 30, 2023): will be fixed in https://github.com/immich-app/immich/pull/3469
Author
Owner

@rardxyz commented on GitHub (Jul 31, 2023):

Sorting in shared albums(public link) still uses the oldest to newest. Would it also be possible to change it?

@rardxyz commented on GitHub (Jul 31, 2023): Sorting in shared albums(public link) still uses the oldest to newest. Would it also be possible to change it?
Author
Owner

@jrasm91 commented on GitHub (Aug 15, 2023):

We can open a separate issue for shared links if those are still inconsistent. Albums are sorted newest to oldest now though.

@jrasm91 commented on GitHub (Aug 15, 2023): We can open a separate issue for shared links if those are still inconsistent. Albums are sorted newest to oldest now though.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1117