public Vote::getRanking
November 22, 2025 ยท View on GitHub
Description
public Vote->getRanking ( [?CondorcetPHP\Condorcet\Election $context = null , bool $sortCandidatesInRank = true] ): array
Get the actual Ranking of this Vote.
Parameters
context: ?CondorcetPHP\Condorcet\Election
An election already linked to the Vote.
sortCandidatesInRank: bool
Sort Candidate in a Rank by name. Useful for performant internal calls from methods.
Return value
(array) Multidimenssionnal array populated by Candidate object.