How to set sorting in TC to be like in Windows Explorer?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
blob
Junior Member
Junior Member
Posts: 12
Joined: 2013-12-18, 10:42 UTC

How to set sorting in TC to be like in Windows Explorer?

Post by *blob »

How can I set sorting in Total Commander to be like in Windows Explorer?

I have plenty of files which start with numbers. In Windows Explorer they sort correctly like that:
1 -....
1a -.....
1b -.....
2 -.....
3 -.....
4 -.....
10 -.....
11 -.....
12 -.....
12a -.....
13 -.....
......

While in Total Commander the same set of files is sorted by name like that:

1 -.......
10 -.....
100 -........
1000 -......
1001 -.......
1002 -......
......

Also the same result is by running DOS dir command.

I would like to have the correctly sorted by numbers list of all these files, which I could transfer to a text editor.

I tried dir *.* > list.txt , but that only gives me that wrong type of sorting, which I also have in Total Commander.

How can I set options in TC and in dir command to sort it like it is sorted in Windows Explorer?
Or how can I transfer a list of those files correctly sorted from Windows Explorer to a text editor?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Actually 'correct' one is second one, it is alphabetical. :) While first one is pseudo-sorting called 'natural sorting', and it may be enabled in Configuration - Options, Display.
blob
Junior Member
Junior Member
Posts: 12
Joined: 2013-12-18, 10:42 UTC

Post by *blob »

MVV wrote:Actually 'correct' one is second one, it is alphabetical. :) While first one is pseudo-sorting called 'natural sorting', and it may be enabled in Configuration - Options, Display.
Thanks! And how could I transfer this 'naturally sorted' list of files to a text editor / text file?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

In order to copy names or paths of selected files into clipboard or a file, you can use one of available internal commands:

Code: Select all

cm_CopyToClipboard
cm_CopyNamesToClip
cm_CopyFullNamesToClip
cm_CopyNetNamesToClip
cm_SaveSelectionToFile
cm_SaveSelectionToFileA
cm_SaveSelectionToFileW
(see full list of commands in command browser: cm_CommandBrowser)
Post Reply