sort result of dir globbing