Perhaps you should retrieve the collection and then sort by the needed field in your collection.
public function sortByScore()
{
$resource = UserResource::collection(User::with('game')->get());
return $resource->sortBy('game.current_global_score'); // here it depends on the fields present in your resource
}