Better sorting of the directory