When loading directories, files are now sorted before directories.