Object Hierarchy:

Object hierarchy for SortListModel


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

`GtkSortListModel` is a list model that sorts the elements of the underlying model according to a `GtkSorter`.

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

`GtkSortListModel` 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 `GtkSortListModel`, 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