Fixing an issue

This commit is contained in:
Jeroen De Meerleer 2019-02-06 20:34:09 +01:00
parent a62d20355d
commit dcca8fe39e
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -56,11 +56,11 @@ class Tournament extends TournamentModel
/**
* @return array
*/
public function getRanking(bool $sort)
public function getRanking(bool $americansort = false)
{
$players = $this->getPlayers();
$sort ? usort($players, array($this, "SortNormal")) : usort($players, array($this, "SortAmerican"));
$americansort ? usort($players, array($this, "SortAmerican")) : usort($players, array($this, "SortNormal"));
return $players;
}