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

[Improvement] Have "Order by Name" also apply to leading digits in a filename (1, 2 ... 9, 10, 11 ... 19, 20, 21...) #1035

Closed
working-name opened this issue Nov 23, 2024 · 4 comments

Comments

@working-name
Copy link

Hi there,

Problem description:
I'm frustrated by the app's order by name, ascending, ignoring the natural sequence of digits. I manually name some files by placing a digit at the beginning to keep the files in sequence (file names are random, can't do anything about that). However, when I look at the list, I see 1 is followed by 10, 11 and so on, before 2 come up. Then 20, 21, 22... before 3 comes up.

That is counter-intuitive and ruins intentional ordering by prepending digits.

Expected behavior:
I would like Order by Name to also apply to digits in a way that it maintains the natural order of numerals, where 9 is before 10, and 2 after 1.

Other solutions explored:
I have thought about changing my naming scheme to: a1-9, then b1-9, then c1-9... While it would be a good workaround, it then makes it difficult to ascertain how many total files there are, or how many are left to review since I go through them 1 by 1 in sequence. While a viable workaround, not any less frustrating.

Thanks for considering it.

@zhwanng
Copy link
Contributor

zhwanng commented Nov 27, 2024

I've noticed this problem and it's going to be optimized

@Makumasa
Copy link

Makumasa commented Dec 31, 2024

It also appears that all files starting with a lowercase letter come after files starting with an uppercase letter when sorting by name. My guess is that it's simply using the ASCII numerical value when sorting?

Additionally, I think sorting by name should default to "Ascending," not "Descending."

@zhwanng
Copy link
Contributor

zhwanng commented Jan 6, 2025

It also appears that all files starting with a lowercase letter come after files starting with an uppercase letter when sorting by name. My guess is that it's simply using the ASCII numerical value when sorting?

Additionally, I think sorting by name should default to "Ascending," not "Descending."

yes, the next release adds some rules, which will sort by natural numbers and characters

@zhwanng
Copy link
Contributor

zhwanng commented Jan 7, 2025

Can bump to the v3.0.7 version and test it in the Github releases?

@zhwanng zhwanng closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants