Correct sort of Untitled documents
Better fix using the options parameters in locale compare
Fix for extensions compare
Merge pull request #4524 from TomMalbran/tom/issue-4409

Issue #4409: Incorrect sort order for untitled files