Thanks for the reply. I have the ‘order’ => ‘name asc’ in the model. The issue is when you use a scope (in this case for countries), the list of countries are not ordered by name. Here is an attachment.
scopes:
country:
label: Country
modelClass: Jlh\Property\Models\Country
conditions: country_id in (:value)
nameFrom: name
options: getSortedCountryOptions
The Country.php model:
public function getSortedCountryOptions()
{
return Country::orderBy('name')->pluck('name', 'id')->toArray();
}