Open sakkamade opened 3 years ago
this is still not fixed. which seem to be a simple problem.
@rezad1393 The problem of sorting filenames is much more complicated than you think.
This is because you don't know how many times a number appears in a file name, and there are complicated problems such as how to interpret the dots connected to the number. These issues should be resolved by the OS, not the application.
On Windows, the solution is the StrCmpLogicalW()
API.
It is undefined because the API to be used on other OS is unknown.
If you know it, you will be able to modify the source code.
sorry if I came off as a arrogant person. I am not a programmer. what I meant was that some programs consider that issue and have fixed it. for example another comic viewer I used is mcomix and it uses the correct sort. maybe you can check that our?
@rezad1393 QuivkViewer is implemented by the Qt SDK. It usually doesn't make sense for you to discuss the implementation of other applications here. You just need to consider how other Qt-based applications are implemented.
Now, regarding this problem, I think that it can be solved to a certain level by using the QCollator
class.
https://doc.qt.io/qt-5/qcollator.html
However, I currently have no positive motivation to support Linux. If there is someone you want to be in charge of, please come forward. It will be a volunteer task, but will be paid a small amount.
thank you for fast and concise answer.
What is the problem The issue https://github.com/kanryu/quickviewer/issues/76 pretty much explains the current behaviour of sorting on Linux.
Upon choosing Sort by Filename, the files are sorted in this way:
Needless to say that reading any sort of book, or even viewing images, with such sorting is inconvenient.
What is the solution Thus, the feature I would like to see is the "Sort by Number" such as in Geeqie (do not support archives). Which would also sort the files by file names, but will take into account and numbers as well, like so: