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: sheep, Hacker, Stefan2, white

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 » 2016-12-08, 22:04 UTC

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: 5157
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK » 2016-12-08, 22:33 UTC

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: 38395
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 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).

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
http://www.ghisler.com

AntonDudarenko
Member
Member
Posts: 111
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Post by *AntonDudarenko » 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_----
#146217 personal license

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

Post by *rfaquino » 2016-12-09, 15:45 UTC

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: 8971
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2016-12-09, 20:34 UTC

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 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

lswist
New Member
New Member
Posts: 0
Joined: 2019-11-17, 14:19 UTC

Re:

Post by *lswist » 2019-11-17, 14:20 UTC

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_----

AntonDudarenko
Member
Member
Posts: 111
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Re:

Post by *AntonDudarenko » 2019-11-21, 14:33 UTC

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

Post Reply