Skip to content

Commit

Permalink
🐛 sort trusted users case-insensitive (#3063)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Sieg <[email protected]>
  • Loading branch information
MrKrisKrisu and xanderio authored Dec 28, 2024
1 parent 7b64c74 commit 2543eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/v1/TrustedUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function indexTrustedBy(): AnonymousResourceCollection {
return $std;
})
->unique('trusted.id') //remove duplicates
->sortBy('trusted.username');
->sortBy('trusted.username', SORT_FLAG_CASE | SORT_NATURAL);

return TrustedUserResource::collection($trustedByUsers);
}
Expand Down

0 comments on commit 2543eef

Please sign in to comment.