Adds sorting by date