Sorts files in directories
Fixes requires