Search results are not sorted, should be newest first #4080

Closed
opened 2026-02-05 09:42:26 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @JordyEGNL on GitHub (Aug 15, 2024).

The bug

The search results are not sorted. In my opinion they should be sorted by newest first.

The OS that Immich Server is running on

NA

Version of Immich Server

v1.112.0

Version of Immich Mobile App

v1.112.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

NA

Your .env content

NA

Reproduction steps

1. Have different images with the same subject (for example a cat) but with different dates
2. Make sure that the search task has finished for those images
3. Search for the subject
4. Images are not sorted by date and this cannot be changed

Relevant log output

No response

Additional information

No response

Originally created by @JordyEGNL on GitHub (Aug 15, 2024). ### The bug The search results are not sorted. In my opinion they should be sorted by newest first. ### The OS that Immich Server is running on NA ### Version of Immich Server v1.112.0 ### Version of Immich Mobile App v1.112.0 ### Platform with the issue - [ ] Server - [X] Web - [X] Mobile ### Your docker-compose.yml content ```YAML NA ``` ### Your .env content ```Shell NA ``` ### Reproduction steps ```bash 1. Have different images with the same subject (for example a cat) but with different dates 2. Make sure that the search task has finished for those images 3. Search for the subject 4. Images are not sorted by date and this cannot be changed ``` ### Relevant log output _No response_ ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Aug 15, 2024):

The search results are sorted by relevance.

@bo0tzz commented on GitHub (Aug 15, 2024): The search results are sorted by relevance.
Author
Owner

@JordyEGNL commented on GitHub (Aug 15, 2024):

The search results are sorted by relevance.

Could make it an option? To search by relevance or date?

@JordyEGNL commented on GitHub (Aug 15, 2024): > The search results are sorted by relevance. Could make it an option? To search by relevance or date?
Author
Owner

@schuhbacca commented on GitHub (Aug 15, 2024):

The search results are sorted by relevance.

Could make it an option? To search by relevance or date?

How would you see that working out of curiosity? When you search for "cat" it brings up the most relevant results in that order. How would you also sort by date then?

You would need an arbitrary "relevance" cutoff that could then be sorted, but that is a number that would be very hard to define more than likely.

@schuhbacca commented on GitHub (Aug 15, 2024): > > The search results are sorted by relevance. > > Could make it an option? To search by relevance or date? How would you see that working out of curiosity? When you search for "cat" it brings up the most relevant results in that order. How would you also sort by date then? You would need an arbitrary "relevance" cutoff that could then be sorted, but that is a number that would be very hard to define more than likely.
Author
Owner

@JordyEGNL commented on GitHub (Aug 15, 2024):

You're right, there should be a relevance cutoff in order to only show the relevant assets.

@JordyEGNL commented on GitHub (Aug 15, 2024): You're right, there should be a relevance cutoff in order to only show the relevant assets.
Author
Owner

@dvelayosmd commented on GitHub (Nov 18, 2024):

i get the "relevance" argument, but when you have a lot of "relevant" images, the search result seems a chaos.

it would be great to have a way to sort the results by date as an option on the result page

@dvelayosmd commented on GitHub (Nov 18, 2024): i get the "relevance" argument, but when you have a lot of "relevant" images, the search result seems a chaos. it would be great to have a way to sort the results by date as an option on the result page
Author
Owner

@jamesob commented on GitHub (Feb 18, 2025):

Yeah agree, search is pretty useless IMO right now without an "order-by" function. E.g. I'll often have written something down, take a picture, and look for it later. Without search ordering, this is useless. Google Photos also offers this functionality.

@jamesob commented on GitHub (Feb 18, 2025): Yeah agree, search is pretty useless IMO right now without an "order-by" function. E.g. I'll often have written something down, take a picture, and look for it later. Without search ordering, this is useless. Google Photos also offers this functionality.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#4080