nextcloud / nextcloud/viewer

Images/videos with an underscore are displayed in the wrong order

Open
#2,596 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
119
Forks
72
Avg merge
18h 42m
Merged PRs (30d)
24

Description

Images/videos with an underscore are displayed in the wrong order in Viewer.

Correct sorting (the photos are displayed in Files in this order):
name.jpg
name_01.jpg
name_02.jpg
name_03.jpg

The photos are displayed in the wrong order in Viewer:
name_01.jpg
name_02.jpg
name_03.jpg
name.jpg

See also:
https://github.com/nextcloud/server/issues/45829

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the ordering in Viewer using the filenames shown in the issue, then compare it with the order in Files. Trace the Viewer sorting entry point and check the related Nextcloud server issue for context. Done means Viewer displays name.jpg before name_01.jpg, name_02.jpg, and name_03.jpg.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.