Please help, need to sort grid index as: :grid, columns: 4
? I have tried different approaches like to define order in scope :all
but it doesn’t call all even by clicking it in scopes panel; in a custom scope like this Ecto returns expected at most one result but got 10 in query
:
from p in Post,
where: not is_nil(p.details),
group_by: [p.id, p.name],
order_by: [asc: p.name]
Something likes this doesn’t work too:
query do
%{all: [order_by: [asc: :name]]}
end
And many more. But no luck yet? How to sort index order in ExAdmin? Does anyone know???