Folders not affected by clicking on header column

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
rfaquino
Junior Member
Junior Member
Posts: 4
Joined: 2010-09-16, 03:37 UTC
Location: Cambridge, MA

Folders not affected by clicking on header column

Post by *rfaquino »

This report is for Total Commander 9.0a RC2 running on 64-bit Windows 10 Pro.

I apologize if this has been reported before, I did my best avoid a duplicate.

When displaying a folder (directory) that contains other sub-folders (sub-directories), clicking on a column header attribute to change the sort order has no effect on directory names, only on filenames.

Example:

Name___Size______Date______Attr
DIR1___<DIR>___2016/11/25_----
DIR2___<DIR>___2015/11/01_----
File1___815,051__2011/07/11_-a--
File2___658,299__2008/11/26_-a--

Clicking on any of the columns on the header (Name, Size, Date) will only affect File1 and File2, not <DIR1> or <DIR2>.

On a directory that ONLY contains sub-directories (no files), this is even more relevant, since there is currently no way to change the sort order and move the most recent directories to the top of the list and vice-versa. That's how I noticed the issue at first.

I am not sure if this is by design or a bug; I don't even remember if this used to work in previous versions of Total Commander, but it works fine on Windows' File Explorer.

Thanks in advance.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Configuration -> Options... -> Display:
Sorting directories
(_) Always by name (x) Like files (also by time)


:?:

Regards
Holger
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

By default, directories are sorted by name. However, it can be changed in Configuration - Options - Display - Like files (also by time).

If you need to change this multiple times, you may create a button in the button bar with the command cm_SwitchDirSort .
I apologize if this has been reported before, I did my best avoid a duplicate.
Don't worry, better too many bug reports than a missed report. I can only fix things I know about.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Post by *AntonyD »

but here is absent one important option:
"treat folders and files like identical object of FS"
Hence when such combobox will be checked - operations of sorting should not sort sub-folders at first - put them in the beginning of the folder's list - then sort files and put them AFTER sorted sub-folders.

For ex. taking into account an ex. from the first post after sorting by Date we should get this:

File2___658,299__2008/11/26_-a--
File1___815,051__2011/07/11_-a--
DIR2___<DIR>___2015/11/01_----
DIR1___<DIR>___2016/11/25_----

Another example of desired behavior:

File3___815,051__2011/07/11_-a--
DIR2___<DIR>___2011/08/03_----
File1___385,129__2012/12/11_-a--
File2___111,111__2014/05/06_-a--
DIR1___<DIR>___2015/11/01_----
File4___018,074__2015/12/26_-a--
DIR3___<DIR>___2016/11/01_----
#146217 personal license
rfaquino
Junior Member
Junior Member
Posts: 4
Joined: 2010-09-16, 03:37 UTC
Location: Cambridge, MA

Post by *rfaquino »

Thanks everyone for the quick responses. I have TC now working as I wished (as it always does). :-)
Renato F. Aquino
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2rfaquino

If you also want to be able to sort directories by extension you can add SortDirExt=1 to te [Configuration] section of your wincmd.ini file.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
lswist
New Member
New Member
Posts: 0
Joined: 2019-11-17, 14:19 UTC

Re:

Post by *lswist »

Did you find the solution for your approach?

AntonDudarenko wrote: 2016-12-09, 09:40 UTC but here is absent one important option:
"treat folders and files like identical object of FS"
Hence when such combobox will be checked - operations of sorting should not sort sub-folders at first - put them in the beginning of the folder's list - then sort files and put them AFTER sorted sub-folders.

For ex. taking into account an ex. from the first post after sorting by Date we should get this:

File2___658,299__2008/11/26_-a--
File1___815,051__2011/07/11_-a--
DIR2___<DIR>___2015/11/01_----
DIR1___<DIR>___2016/11/25_----

Another example of desired behavior:

File3___815,051__2011/07/11_-a--
DIR2___<DIR>___2011/08/03_----
File1___385,129__2012/12/11_-a--
File2___111,111__2014/05/06_-a--
DIR1___<DIR>___2015/11/01_----
File4___018,074__2015/12/26_-a--
DIR3___<DIR>___2016/11/01_----
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Re:

Post by *AntonyD »

lswist wrote: 2019-11-17, 14:20 UTC Did you find the solution for your approach?
.....
unfortunately no - the author did not introduce a proper sub-option for such desirable kind of sorting,
so right now it's impossible - to get such order at TC's panels...
and sorry for a long delay before my answer... notifications for some reasons do not working for me...
#146217 personal license
silversword
New Member
New Member
Posts: 1
Joined: 2005-07-05, 22:40 UTC

Re: Folders not affected by clicking on header column

Post by *silversword »

Possible feature suggestion to add flexibility related to this subject:
For Options | Display | View Mode | have an options in here (Under Additional Sort orders?)

Break out name and have: Name, File Name, and Folder Name as options here.

Yes, there is a global option under Display | Sorting Directories but you have to keep toggling based on use-case.
ManlyElectronics
New Member
New Member
Posts: 1
Joined: 2021-11-20, 21:39 UTC
Location: Sydney Australia
Contact:

Re:

Post by *ManlyElectronics »

ghisler(Author) wrote: 2016-12-08, 22:36 UTC By default, directories are sorted by name. However, it can be changed in Configuration - Options - Display - Like files (also by time).
..
thanks, it worked! Although why folders sorting is in Display while customizing sorting is at View Mode is a mystery.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Folders not affected by clicking on header column

Post by *petermad »

2ManlyElectronics
...while customizing sorting is at View Mode..
You don't need to use View Mode to customize sorting, you can do it directly at the tabstop header:
Help wrote:When you Ctrl+Click or Shift+Click on a header, it is defined as an additional sort order. If the first column results in equal items, the second column will be used, then the third etc. When you click on a header which is already used for sorting, the result depends on the modifier key: With Shift, the sort order of that header is removed. With Ctrl, the sort direction is reversed.
Example: Click on Size, then Shift+Click on Date. Files will be sorted by size, and those with equal size will be sorted by date.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply