Two related questions about sorting a file display by columns.
SCRIPTS: The 'Column' page in the script section of the Help manual specifies how to get the sort order, the reversed-or-not-reversed, and the width. Is there any script way to set these properties (other than RunCommand), or are DOpus commands required?
SORTBY: My reason for wanting to use a script is that the DOpus command Set SortBy is behaving in ways that I don't understand. My problems concern the first column in the string of columns. I will describe things as clearly as I can, but I suspect that they more unpredictable than this.
(a) Both Set SortBy=ext and Set SortBy=-ext sort the extension column in forward alphabetical order. In each case, I mouse-click to sort on the 'Name' column immediately before running the command.
(b) But if instead I click to sort on Name, then click twice on Extension to sort it in reverse, the Set SortBy=ext has no effect (and neither does Set SortBy=-ext).
(c) Change the command to Set SortBy=-ext,-attr.
- This command works, reverse sorting both columns (after first clicking on Name).
- If instead I click to sort on Name, then click once to sort on Extension, then I have to run the button twice to get the desired result. First time is wrong, with Extension sorted forwards, Attributes in reverse. Second time is correct, with both columns reverse sorted.
- Change the command to Set SortBy=-ext,-attr,-path. Same two results.
I don't know whether my system is corrupt, or if I'm misunderstanding, but it all seems unintended, and you can see why I am trying to use a script to set the sort order and the reverse-or-not-reverse as well as get them.