Set the sortable property to enable sortable table rows.
sortable
protected $sortable = true;
You can also flag tables as sortable on the fly.
$builder->setSortable(true);