I have 2 models: Property and Country. Each Property belongs to a country.
public $belongsTo = [
'country' => [
\Jlh\Property\Models\Country::class,
'order' => 'name asc'
],
];
On the Property backend list, I have a filter for Country but I can’t get the countries to list in alpha order:
scopes:
country:
label: Country
modelClass: Jlh\Property\Models\Country
conditions: country_id in (:value)
nameFrom: name
Any help is appreciated.