add sort by score date duration function with dateformatter