Level 29
I think this is not currently possible in Nova. If i am correct it will order by the title. Maybe you can try setting the title to the surname instead of name ?
Hi everyone! I'm lost to make order in belongsTo field:
I have A resource with columns name and surname. Index view has: public static $orderBy = ['surname' => 'asc'];
, and it works as should. But in resource B I have field: belongsTo resource A, and when I try to choose from the list resource A, ordering is done by name.
How to order it by surname?
Please or to participate in this conversation.