ColumnView.sortByColumn

Sets the sorting of the view.

This function should be used to set up the initial sorting. At runtime, users can change the sorting of a column view by clicking on the list headers.

This call only has an effect if the sorter returned by [method@Gtk.ColumnView.get_sorter] is set on a sort model, and [method@Gtk.ColumnViewColumn.set_sorter] has been called on @column to associate a sorter with the column.

If @column is %NULL, the view will be unsorted.

class ColumnView
void
sortByColumn

Parameters

column ColumnViewColumn

the GtkColumnViewColumn to sort by, or %NULL

direction GtkSortType

the direction to sort in

Meta