how to display sort selections with Table ViewColumn?

I have a piece of code like this

->columns([
                Split::make([
                    TextColumn::make('amount')
                        ->sortable()
                        ->hidden(),

                    TextColumn::make('discount')->sortable()->hidden(),
                ]),

                View::make('complicated-view to display multiple things in a very custom manner'),
            ])


However i didn't get the amount and discount sort to appear

This is what i had in mind (which didn't happen). I tried to use the Split to get the Sort by thing to show but it didn't too
CleanShot_2023-11-10_at_17.19.192x.png
Was this page helpful?