Sort the history from most recent to older.