Skip to content

Next and previous buttons do not respect sort order #3027

Closed

Description

@sbraz

Describe the bug
Hi,
When viewing photos sorted by Modified date and clicking next, the next file is the next by alphabetical order, not by modified date.
Nextcloud version: 32.0.2

To Reproduce
Steps to reproduce the behavior:

  1. Go to a folder containing pictures
  2. Click "Modified" to sort by modified date
  3. Click a picture
  4. Click next
  5. The next picture is the next one in alphabetical order

Expected behavior
The next picture should be the next by modified date.

Screenshots

Pick an image:
Image

Click next:
Image

The wrong image is shown, it should have been 2025-11-22 13-46-55 (B,R2,S2).jpg instead
Image

Desktop (please complete the following information):

  • OS: Linux
  • Browser Firefox
  • Version 145

Browser log

[WARN] viewer: No files provided, skipping update 
Object { app: "viewer", uid: "sha1", level: 2 }

Additional context

This was reported a long time ago in https://help.nextcloud.com/t/the-order-of-the-previous-picture-and-the-next-picture-is-incorrect/130093/9

Activity

  1. added
    bugSomething isn't working
    0. Needs triagePending approval or rejection. This issue is pending approval.
    on Nov 22, 2025
  2. gdtv commented on Feb 27, 2026

    @gdtv

    Any update on the linked PR #2989? Still experiencing this in latest NC version. Thanks!

  3. skjnldsv commented on Sep 8, 2026

    @skjnldsv
    Member

    Fixed for 36.

  4. skjnldsv commented on Oct 3, 2026

    @skjnldsv
    Member

    Fixed in the new viewer: next and previous follow the order of the Files list, including sorting by modified date.

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

Metadata

Metadata

Assignees

Labels

0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions