1.9.10 - The problem with sorting files

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

adrem85
Posts: 94
Joined: Mon Feb 10, 2020 12:47 pm

Re: 1.9.10 - The problem with sorting files

Post by adrem85 »

Unfortunately, I don't understand what it means - ".XnViewSort". I just wanted to say that using "Custom" sorting globally, in all folders, does not logically make sense for the vast majority of users.

And it would be more convenient if this type of sorting was automatically changed to the standard (Name) after the user leaves the folder with the "Custom" sorting.
User avatar
user0
XnThusiast
Posts: 2842
Joined: Sat May 09, 2015 9:37 am

Re: 1.9.10 - The problem with sorting files

Post by user0 »

xnview wrote: Tue Feb 17, 2026 9:12 am So when you browse in a folder with .XnViewSort, sort is automatically 'Custom', and in other folder users sort?
few options
  • as you described (via saving 'previous sort order')
  • add 'enabled=[true/false]' flag into .XnViewSort
    • if no .XnViewSort in folder and user triggers manual sort
      - create file with enabled flag
    • if .XnViewSort exists in folder
      • check flag
        - if enabled/absent - use manual sort
        - if disabled - use current sort
      • if user changes sort from current to Custom
        - save 'previous sort order' AND
        - use XnViewSort, set flag to enabled

xnview wrote: Tue Feb 17, 2026 9:12 am If you browse a folder with .XnViewSort, and user choose another sort, .XnViewSort should be removed?
I would delete, but someone may be upset that their very important sorting order has been deleted OR see above