new sort function for fswatcher