Make sort function sort always the same by sending it more than one property to sort on, for example sort files by date and if they have the same date, sort them by title