TreeViewColumn.setSortColumnId

void setSortColumnId(int sortColumnId)

Sets the logical sort_column_id that this column sorts on when this column is selected for sorting. Doing so makes the column header clickable.

Parameters

sortColumnIdThe sort_column_id of the model to sort on.