Add sort by date fn