Added sort function for files
Deletion is in option.