Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter sort issue with large volume/chapter counts #9

Closed
DuraMorte opened this issue Mar 9, 2020 · 4 comments
Closed

Chapter sort issue with large volume/chapter counts #9

DuraMorte opened this issue Mar 9, 2020 · 4 comments
Labels
general question Question about Mango and how to use it

Comments

@DuraMorte
Copy link

When I imported a manwha with 500+ chapters, the sorting ordered them as follows:

1
10
100
101-109
11
110-119
12

etc. etc.

Would it be possible to have them listed in the proper order without having to prepend zeroes into the names?

@DuraMorte DuraMorte added the bug Something isn't working label Mar 9, 2020
@hkalexling
Copy link
Member

hkalexling commented Mar 9, 2020

This is the expected behavior when sorting by filename. It would be unreliable if Mango has to parse numbers from the filenames. For example, a filename might contain both volume and chapter numbers (e.g., One-Punch Man Vol.02 Ch.120). Sometimes people might have files with non-English filenames, so parsing the number proceeding Ch. might also fail.

How do you think Mango should handle this?

@hkalexling hkalexling added general question Question about Mango and how to use it and removed bug Something isn't working labels Mar 9, 2020
@hkalexling
Copy link
Member

hkalexling commented Mar 11, 2020

I have been thinking about this, and one way to handle the problem is to add an "intelligent sorter" to the list of sorting options. The intelligent sorter would attempt to parse the filenames to retrieve the chapter/volume numbers and sort the files accordingly, and when it fails it can simply fall back to use the default filename sorting.

I will try to include this in the next release.

@hkalexling
Copy link
Member

This is added in v0.2.0. The default sorting option for chapters is "Auto", which sorts files in the way you described.

Screen Shot 2020-03-13 at 4 32 39 PM

@DuraMorte
Copy link
Author

Auto sort is working! My manwha displays correctly (after renaming the files as Volumes, as opposed to their original naming as Episodes).
Thank you for your hard work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general question Question about Mango and how to use it
Projects
None yet
Development

No branches or pull requests

2 participants