[TC 10.52 and earlier] Current sorting of dirs not applied when feeding a search to listbox

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
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[TC 10.52 and earlier] Current sorting of dirs not applied when feeding a search to listbox

Post by *petermad »

To reproduce
  1. Make sure that "Sorting directories" are set to: "Like files (also by time)".
  2. Make a directory containing these folders: dir1, dir2 and dir3 and these files file1, file2 and file3
  3. Set the sorting to for example Name in Reversed order.
  4. Make a search for everything in that folder (leave "Search for" blank).
  5. Feed the search result to listbox.
  6. The folders and files are sorted like this:
    drive:\path\dir1
    drive:\path\dir2
    drive:\path\dir3
    drive:\path\file3
    drive:\path\file2
    drive:\path\file1
    but they should have been sorted like this:
    drive:\path\dir3
    drive:\path\dir2
    drive:\path\dir1
    drive:\path\file3
    drive:\path\file2
    drive:\path\file1
  7. Click on the Name tabstop header twice - or run the command cm_SwitchDirSort 2.
    Now the folders are sorted correctly in reversed order:
    drive:\path\dir3
    drive:\path\dir2
    drive:\path\dir1
  8. It is not just sorting by Name that is affected, it is for sorting by any column also custom columns.
  9. Folders are apparently always sorted by Name in Normal order when fed to listbox.
    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
    User avatar
    ghisler(Author)
    Site Admin
    Site Admin
    Posts: 48021
    Joined: 2003-02-04, 09:46 UTC
    Location: Switzerland
    Contact:

    Re: [TC 10.52 and earlier] Current sorting of dirs not applied when feeding a search to listbox

    Post by *ghisler(Author) »

    The sort order is not changed when you choose "Feed to listbox". This is intentional.
    Author of Total Commander
    https://www.ghisler.com
    User avatar
    petermad
    Power Member
    Power Member
    Posts: 14739
    Joined: 2003-02-05, 20:24 UTC
    Location: Denmark
    Contact:

    Re: [TC 10.52 and earlier] Current sorting of dirs not applied when feeding a search to listbox

    Post by *petermad »

    The sort order is not changed when you choose "Feed to listbox". This is intentional.
    That is not what I am saying - I am saying that the current sort order (before feeding to listbox) is not applied to folders, it is only applied to files after having fed to listbox.
    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
    User avatar
    ghisler(Author)
    Site Admin
    Site Admin
    Posts: 48021
    Joined: 2003-02-04, 09:46 UTC
    Location: Switzerland
    Contact:

    Re: [TC 10.52 and earlier] Current sorting of dirs not applied when feeding a search to listbox

    Post by *ghisler(Author) »

    Then the folders should already be sorted in the search dialog, not just after "Feed to listbox"?
    Author of Total Commander
    https://www.ghisler.com
    User avatar
    petermad
    Power Member
    Power Member
    Posts: 14739
    Joined: 2003-02-05, 20:24 UTC
    Location: Denmark
    Contact:

    Re: [TC 10.52 and earlier] Current sorting of dirs not applied when feeding a search to listbox

    Post by *petermad »

    Then the folders should already be sorted in the search dialog
    The dirs are also not sorted according to the current sort order in the search result.

    Maybe an image illustrates it better: https://madsenworld.dk/tcmd/searchresultdirsorting.png - notice how files are sorted correctly (reverse order), but folders are sorted wrong in the Find Files dialog and the Search result (yellow).
    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
    User avatar
    ghisler(Author)
    Site Admin
    Site Admin
    Posts: 48021
    Joined: 2003-02-04, 09:46 UTC
    Location: Switzerland
    Contact:

    Re: [TC 10.52 and earlier] Current sorting of dirs not applied when feeding a search to listbox

    Post by *ghisler(Author) »

    Sorry, I prefer not to change this behavior.
    Author of Total Commander
    https://www.ghisler.com
    Post Reply