Wrong numerical sorting?

Here you can report bugs found in Far Manager.
Post Reply
Hanx0r
Posts: 2
Joined: Mon 13 May, 2019 11:37
Has thanked: 2 times

Wrong numerical sorting?

Post by Hanx0r » Mon 13 May, 2019 11:41

Build 3.0 5300, x86

Here's my folder contents - 6 folders.

200106 Folder 1
200400 Folder 2
200500 Folder 3
201203 Folder 4
201304 Folder 5
201308 Folder 6

Notice the 00 in 2004 and 2005 lines? If I remove these zeroes, here's my "sorted" list:

2004 Folder 2
2005 Folder 3
200106 Folder 1
201203 Folder 4
201304 Folder 5
201308 Folder 6

Any idea why would it sort so? Is it trying to sort "numerically", treating the first member of the folder name as a number? If so - how would I switch it off, if possible?

Shmuel
Posts: 5897
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 23 times
Been thanked: 218 times

Wrong numerical sorting?

Post by Shmuel » Mon 13 May, 2019 12:41

F9 -> Options -> System settings
[ ] Treat digits as numbers

User avatar
HaRT
Moderator
Posts: 9088
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 90 times
Been thanked: 158 times

Wrong numerical sorting?

Post by HaRT » Mon 13 May, 2019 12:41

In “System settings”, is “Treat digits as numbers” checked? If yes, try unchecking it.
Фар есть инструмент, а не нянька. © 2009 DrKnS

Hanx0r
Posts: 2
Joined: Mon 13 May, 2019 11:37
Has thanked: 2 times

Wrong numerical sorting?

Post by Hanx0r » Wed 15 May, 2019 06:10

Halleluiah! Works as Intended. Thank you, saviours. I was sure this was a feature, not a bug.

Far is pretty much the first piece of soft I end up instlling on new machines :)

Post Reply

Return to “Bug Reports”