The purpose of this patch is to fix the sorting in Gwenview.
I believe Geeqie has a better sorting.
Actually, I am annoyed by these behaviours:
MainWindow::setInitialUrl (a click on a directory in the recent places). This is also a silent behaviour, and it ignores/overwrites the actual Gwenview sorting setup. Thus, this is clearly a bug.
I am not sure the image dimension code is the most efficient.
CI pipeline failed, but this patch compiles and works as expected.
TODO: this patch need some clean-up... (logging, Emacs, ...)