Object Hierarchy:

Object hierarchy for SortListModel


[ CCode ( type_id = "gtk_sort_list_model_get_type ()" ) ]
public class SortListModel : Object, ListModel

SortListModel is a list model that takes a list model and sorts its elements according to a Sorter.

The model can be set up to do incremental sorting, so that sorting long lists doesn't block the UI. See set_incremental for details.

SortListModel is a generic model and because of that it cannot take advantage of any external knowledge when sorting. If you run into performance issues with SortListModel, it is strongly recommended that you write your own sorting list model.

Namespace: Gtk
Package: gtk4



Creation methods:


Inherited Members:

All known members inherited from interface GLib.ListModel