mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2025-01-08 04:09:52 +01:00
Fixing an issue
This commit is contained in:
parent
b65acac02d
commit
e7c82ad838
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user