Added sorting for test files which is needed on Linux