add sorting by date