I have a new Laravel Nova installation with a Property model. Properties have an attribute of 'country' and I want to show a partition metric on the 'country' col.
public function calculate(Request $request)
{
return $this->count($request, Property::class, 'country','country');
}
All works, but it only sorts alphabetically by the country which rather than descending on the count which would make more sense.
Is there any way to sort the output?