From: Daniel Karbach Date: Tue, 15 Nov 2022 20:05:37 +0000 (+0100) Subject: fix round sorting function X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=f295d5ffc60a5f73bd4dd89c0ecc69aecaac9d8a;p=alttp.git fix round sorting function --- 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); }