backend.list.extendSortColumn

Triggered in Backend\Widgets\Lists.

Provides an opportunity to customize the sort column and direction

Example usage:

Event::listen('backend.list.extendSortColumn', function ($listWidget, $query, $sortColumn, $sortDirection) {
    $query->reorder('secondary_order', 'asc);
    $query->orderBy($sortColumn, $sortDirection);
});

Or

$listWidget->bindEvent('list.extendSortColumn', function ($query, $sortColumn, $sortDirection) {
    $query->orderBy('secondary_order');
});