OpenComic icon indicating copy to clipboard operation
OpenComic copied to clipboard

[Bug]: Lexicographic sorting of pages inside a manga chapters loads pages out of order

Open TyrantRC opened this issue 4 months ago • 0 comments

Preflight Checklist

  • [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.

OpenComic Version

1.1.0

Operating System

Windows 10 Pro N 22H2 19045.4046

Steps to reproduce

  1. add a comic where the pages are numbered without numbering padding, as in 1.png, 2.png, 3.png, ..., 10.png
  2. open comic
  3. pass through the pages

Expected Behavior

OC (as almost every other reader) should organize pages using numerical (key) sorting so that it shows the pages in this order: 1.png, 2.png, 3.png, 4.png, 5.png, 6.png, 7.png, 8.png, 9.png, 10.png

Actual Behavior

it organizes pages with lexicographic sorting, so it thinks 10 comes before 2, 20 before 3, and so on image

Error message

No response

Additional Information

I know this can be fixed by renaming all the pages with numbering padding (001, 002, 003, etc) but not everyone is tech-savvy enough to know how to use a renamer app. This is expected in modern readers, here are some examples of other readers: Honeyview Houdoku Kavita Yomikiru

Sample file

No response

TyrantRC avatar Feb 20 '24 20:02 TyrantRC