bugfix/15374: filenames not grouped properly on linux without prior sorting

task/15374