Next and previous buttons do not respect sort order
@skjnldsv is already working on this.
Since Aug 26, 2026.
- Dominant language
- JavaScript
- Stars
- 119
- Forks
- 72
- Avg merge
- 18h 42m
- Merged PRs (30d)
- 24
Description
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:
- Go to a folder containing pictures
- Click "Modified" to sort by modified date
- Click a picture
- Click next
- 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:
Click next:
The wrong image is shown, it should have been 2025-11-22 13-46-55 (B,R2,S2).jpg instead
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.