made a sorting algorithm for the filemanager
l