I've a table channels with the colum name.
And a BelongsTo Filed:
BelongsTo::make(__('Name'), 'channel', Channel::class)
->exceptOnForms()->sortable(),
How it works? I've tested these:
public static array $sortRelations = [
'id' => 'channel.name',
];
public static array $sortRelations = [
'id' => [
'twitch_users.display_name',
],
];
Both return SQLSTATE[42S22]: Column not found: 1054 Unknown column.