There is no solution. But may I ask what would be the purpose of sorting the files before opening the file dialog? (which, BTW, is displayed at creation time…)
The program I have, needs to choose a data file from a directory
then make a graph and fit it.
Mostly we need to open the most recent file, or one of the recent files,
therefore it is convenient to have a “ordered by time” view when the dialog is opened,
but now when it opens, each time user needs to push the button “List View” then "Modified"
to sort by time.
Maybe the word “before” is not a good chosen word, instead can be
"as soon user opens the FileDialog"
I was wondering if the situation has changed since 2015, i.e. is there now a way to preset the file dialog box to “List View” with the files sorted by e.g. “Modified” attribute ?