FlowBox.setSortFunc

void setSortFunc(gtk.types.FlowBoxSortFunc sortFunc = null)

By setting a sort function on the box, one can dynamically reorder the children of the box, based on the contents of the children.

The sort_func will be called for each child after the call, and will continue to be called each time a child changes (via [gtk.flow_box_child.FlowBoxChild.changed]) and when [gtk.flow_box.FlowBox.invalidateSort] is called.

Note that using a sort function is incompatible with using a model (see [gtk.flow_box.FlowBox.bindModel]).

Parameters

sortFuncthe sort function