added sorting for files and folders