Sort after getting the dirlist or it breaks apparently