i swear it used to be the case that gtk's file chooser always listed the directories first and at some point the geniuses at gtk made it sort them with everything else, but either way it's been driving me crazy and today i worked out that you can restore the good behavior by setting this registry key:
dconf write /org/gtk/settings/file-chooser/sort-directories-first true
@aeva Are you sure you're not just testing rage bait fnords like Registry Key on Linux users?