I'd like to implement special sorting:
Always sort files descending by date modified AND Be able to swap sorting of folders alphabetically either descending or ascending.
So I am using two custom columns #SortA and #SortB, mixed type, format date (and date columns are globally set to be descending by default). Taking the date for files and taking a scriped column for folders.
There are two hidden scripted columns, for each sort one. And one scriped colums assigns numbers to the folders ascending and the other one descending.
So I just switch between #SortA and #SortB. The files stay and the folders are switched.
The problem comes when there are numbers around dashes in the folder name:
I come from Lua and its tables, this would be basically done the same way in Lua, with associative array/table. I guess it could be done another way but this seems to me the fastest to code. Associative array is a nice thing but at the moment we are not able to use filenames as keys and considering this is a file manager it is not nice. Could it be fixed somehow...?
Or could you suggest another way how to make this done? I am new to xyplorer.