Fix sorting by date in firefox