Sort history matches.