livewire-powergrid icon indicating copy to clipboard operation
livewire-powergrid copied to clipboard

Initial Multi Column Sorting on Mulitple Columns

Open lgastmans opened this issue 1 year ago • 0 comments
trafficstars

⚡ PowerGrid ⚡ Feature Request

The initial sort of the table can be set using:

public string $sortField = 'column_name';
public string $sortDirection = 'asc';

But I would like to have the initial sort on multiple columns, where the columns are related, as in:

public string $sortField = 'collection_number, families.name, genuses.name';
public string $sortDirection = 'asc';

lgastmans avatar Jun 16 '24 02:06 lgastmans