From f295d5ffc60a5f73bd4dd89c0ecc69aecaac9d8a Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 15 Nov 2022 21:05:37 +0100 Subject: [PATCH] fix round sorting function --- app/Models/Result.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2