Fix sorting by date on status model