Add sort by date and alpha functionality