Menu

#919 Sorting dirs before files doesn't work sorting descending

New
nobody
sort (2)
Medium
Defect
2026-06-17
2026-06-07
JarC
No

In the Organize menu is an option that says "Sort dirs before files" This works as long as you only click once on the column header. But if you want to sort descending instead of ascending and click a second time on the same cxolumn header to reverse the sort order, folders no longer get placed before files

Discussion

  • Giorgio Tani

    Giorgio Tani - 2026-06-08

    The option works consistently with the behavior of common file managers (e.g. classic Windows file explorer): dirs are sorted befor files if sorted ascending, which becomes dirs being sorted after files when the order is reversed (descending).
    I've implemented it in this way assuming this is the behavior expected by most users, but of course I understand it may not fit well with some other user cases.

     
  • JarC

    JarC - 2026-06-17

    It's confusing to have a setting that would indicate it to be independent of sort order, For instance the 7z Filemanager does keep folders in top regardless of sort order.
    In this case might I suggest an option to toggle this behavior? Beside the existing setting?
    e.g. 'Keep folders in top when sorting' and rename the 'Sort folders before files' to 'Keep folders together when sorting' so the distinction is clear?

     

Log in to post a comment.

MongoDB Logo MongoDB