LeagueHelpers::VoteTextSorter::operator()(const VoteTextSortElement &, const VoteTextSortElement &) const
- Defined in
- CvVotingClasses.h, line 41
- Class
- LeagueHelpers::VoteTextSorter
- Not a hook point
- written in a header
Code
41 bool operator()(const VoteTextSortElement& a, const VoteTextSortElement& b) const42 {43 if (a.iChoiceVotesTotal != b.iChoiceVotesTotal)44 {45 return a.iChoiceVotesTotal > b.iChoiceVotesTotal;46 }47 else if (a.iChoice != b.iChoice)48 {49 return a.iChoice > b.iChoice;50 }51 else52 {53 return a.iChoiceVotesThisPlayer > b.iChoiceVotesThisPlayer;54 }55 }