Implementation of quick-sort of Candidate/LastVar/Score tuples, by score.