Add sortByDate to pass test.