#1
|
|||
|
|||
Weird sorting of filenames
I think there is a bug in sorting algorithm that is used by JD2. Please have a look at how LibreOffice Calc sorts the strings (which represent filenames without extensions)
Highlighted item is 4th in the ascending order and that is correct according to general alphanumeric sorting rules in english. However, JD2 sorts the filenames in such a way, that the same item (including extension but that is still the same for each file anyway) is placed after the last numeric-starting item 8fdjTFvjR7TWvynjZajw and before alpha-starting item abTcDiAlRfeJ656yEKbN Can you please explain why is it so? |
#2
|
||||
|
||||
That's not a bug.
There are many different sorting algorithms you can use to sort strings and JDownloader uses NaturalOrder sorting in this situation, which groups *group of numbers*
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
Thanks for your reply. Well, then it would be nice to have some option for choosing regular sorting in addition to this NaturalOrder flavour. You know, all standard office tools like spreadsheets use classic sorting of strings based on local alphabet rules and it would be nice to have aligned results across different applications when one wants to sort "by name".
|
#4
|
||||
|
||||
__________________
JD-Dev & Server-Admin |
#5
|
||||
|
||||
while I agree there should be advanced option to change the type of sorting type, there is no 'regular' sort order. From my experience over the years, nearly exclusively numbers before alphabet in most programs, and real life. When it comes to spread sheets they typically give you options on how you want it sorted.
anyway my 2 cents =]
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 13.10.2019 at 14:39. Reason: typing tired = meh |
#6
|
||||
|
||||
Quote:
Good to know that you still are with us. Greetings from Europe. |
#7
|
||||
|
||||
@Guardao
Thankyou =] I've been around, just not heavily active due to work and life commitments.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
Thread Tools | |
Display Modes | |
|
|