Fixed HistoryTicketGet() cache key sort.