Candidates sorting implemented.