Another take of bug 186181, as POC.
The idea is to use filesystem sorting in order to achieve the goal.
Sort by Name, Time, Size, Type or Unsorted implemented for the moment, chosen in a combo, as only one can be selected at a time.
Reversed, DirsFirst/DirsLast, IgnoreCase, LocaleAware options are available as checkboxes.
Code is not cleaned-up yet, debug logs present.