Author Topic: Automatically re-sorts files doesn't work. Bug?  (Read 54 times)

culturework

  • Newbie
  • *
  • Posts: 8
    • View Profile
Automatically re-sorts files doesn't work. Bug?
« on: Yesterday at 10:54:38 »
I've got checked box in:
Explorer Panel Settings > Sorting and Columns > Automatically re-sorts files and folders after a manual rename operation.
but that doesn't work.

I mean, I change file name from b_something to d_something and it stays in the file list at the same position, instead of moving down.
I need to refresh view.
Same with folders.

Is there any other setting I should tick?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4965
    • View Profile
    • Multi Commander
Re: Automatically re-sorts files doesn't work. Bug?
« Reply #1 on: Yesterday at 11:21:49 »
As much changes that the latest release had I would not be surprised if that broke.  I will check later today

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4965
    • View Profile
    • Multi Commander
Re: Automatically re-sorts files doesn't work. Bug?
« Reply #2 on: Yesterday at 12:52:04 »
No. it re-sort for me when I rename a file.. You sure you are sorting on name column ? (I made the mistake my self first to not switch to sort by 'name' )
it is normal filesystem. not inside a virtual one like FTP or something ? can you describe how you do the rename (There are many multiple way to do rename in MC) .
« Last Edit: Yesterday at 13:35:44 by Mathias (Author) »

culturework

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Automatically re-sorts files doesn't work. Bug?
« Reply #3 on: Yesterday at 13:47:25 »
Yes, sorting on Name column checked.
Tried renaming by:
- clicking on file (Windows explorer style)
- Rename current file/folder
- by custom:
  #options (RunSeparate)
  MC.Filesystem.Rename ASKNAME

Effect is always the same - name is changed, nothing happens with sorting, but after refreshing view or refocusing MC, list is resorted.

Files on hard drive, inside system (like Download folder), no virtual or net.
« Last Edit: Yesterday at 14:01:41 by culturework »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4965
    • View Profile
    • Multi Commander
Re: Automatically re-sorts files doesn't work. Bug?
« Reply #4 on: Yesterday at 18:28:48 »
Strange. I can't make it not work.
Try turning the option "Automatically re-sort...." Off.. then save setting..  and then turn it back on again and save settings


culturework

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Automatically re-sorts files doesn't work. Bug?
« Reply #5 on: Today at 11:10:42 »
I did some testing, results:

1.  issue affects only the portable version (MC 16.x and 15.x, haven't used earlier versions), tested with Windows 11 Home, Windows 10 Home, Windows 10 Pro (user account only for the last one); Full installer version works ok with Windows 10/11 Home, didn't try with W10 Pro.

2. turning "Automatically re-sorts files..." on/off with applying, saving, restarting MC in different combinations doesn't help;

3. there is really strange behavior in portable; steps to reproduce:

Open a folder sorted by Name, with setting "Automatically re-sorts files..." checked on.
1. Rename file A to B.
The file does not move to its correct alphabetical position.
After refreshing the panel, the file immediately moves to the correct position (this step isn't necessary, just as a confirmation of alphabetical sorting).
2. Rename the same file B back to A.
Again, it does not move automatically.
3. Repeat the rename (A -> B) on the same file.
Now the file is repositioned automatically without requiring a refresh.

It appears that after the first renaming (A -> B -> A), Multi Commander "learns" how to update that file position correctly. MC "remembers" that file till you rename something else, then it "forgets" auto-sorting for the given file.