Sets the sorting type of a sorted-object.
The generic function sorted-object-sort-by
sets the sort type of
pane
to
new-sort-type
.
new-sort-type
must match by cl:equalp
the type of one of the sorting descriptions of
pane
.
If
allow-reverse
is non-nil and the sort type already matches
new-sort-type
, then the sort reverses the order of the
items
. The default value of
allow-reverse
is t
.
If
pane
is a list-panel, then sorted-object-sort-by
also calls sort-object-items-by to sort the items with the new sort type. For your own subclasses of sorted-object which are not subclasses of list-panel, if you need this behavior define an :after
method that calls sort-object-items-by. You can also define :after
methods on subclasses of list-panel to perform other tasks each time the items are sorted.
CAPI User Guide and Reference Manual (Macintosh version) - 3 Aug 2017