Make sure to sort files in tests to avoid issues with different file orderd coming back from fs.readdir