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

There is a problem with the image viewing order #783

Open
og900aero opened this issue Dec 22, 2024 · 2 comments
Open

There is a problem with the image viewing order #783

og900aero opened this issue Dec 22, 2024 · 2 comments

Comments

@og900aero
Copy link

When I look photos in a library, I noticed a bug where the order is wrong, depending on whether the file name starts with a lower or upper case letter. If there is a directory with 9 images starting with uppercase and 1 image starting with lowercase, then the image starting with a lowercase letter will be displayed last, even though it is the fifth in the library.

@nigels-com
Copy link

In ASCII the capital letters have a lower value than the lower case ones. The historical reason seems be that the initial version of ASCII (or a precursor) there were only capital letters.

From that point of view feh is ordering them in the conventional order. If there is some other order that seems more appropriate for feh first we'd need to define what that should be.

If I was doing something from scratch, perhaps I'd group the digits 0-9, then the lower case a-z, then the upper-case A-Z.
The sort criteria would be first by group, then secondarily by ASCII value.

@og900aero
Copy link
Author

Or simply set whether it should be case sensitive or not.
I feel very underdeveloped in 2024.

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

2 participants