X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FResult.php;h=229ac4b9c8e418c5d52cf9de99c33e07122eaf26;hb=212561cf1c6724b52c490104f5a2b4c3418b1c62;hp=5b0df0fc9bea728714c6d9d18ad2a730d5bc199a;hpb=278c9b9d68b2a5e57068a12b3f7d9611ac42222b;p=alttp.git diff --git a/app/Models/Result.php b/app/Models/Result.php index 5b0df0f..229ac4b 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -37,7 +37,7 @@ class Result extends Model return static::compareUsername($a, $b); } - public static function compareUsername(Participant $a, Participant $b) { + public static function compareUsername(Result $a, Result $b) { return strcasecmp($a->user->username, $b->user->username); }