Topic "wrong sorting files"

Author Message
fuckingsuxx

Guest


Windows8.1
Used WinSCP 5.7.6 build 5874
used GUI - Commander

I see the wrong results of sorting files
example

acceding by name
zavo2*
zavo1*
zavo0*
zavo3*
zavo2*

not acceding by name
zavo2*
zavo3*
zavo0*
zavo1*
zavo2*

[img] winscp.gif [/img]
winscp.gif (107.39 KB) [Download]

Description: (none)

Pathduck
[View user's profile]
Donor
Joined: 2012-05-29
Posts: 76
Location: Oslo
The sort order is determined by your OS setting, in this case Windows Explorer. From the image, it looks like expected for Windows using natural sorting, i.e. 314 is smaller than 900.

For more information, read:
https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/
https://support.microsoft.com/en-us/help/319827/the-sort-order-for-files-and-folders-whose-names-contain-numerals-is-d
https://superuser.com/questions/984997/disable-the-natural-sort-order-in-windows-explorer
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Yes, that's "Natural order numerical sorting":
https://winscp.net/tracker/show_bug.cgi?id=425

Request for an option to turn this is off is tracked here:
https://winscp.net/tracker/show_bug.cgi?id=1293
Advertisements

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License