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 the type of one of the sort 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.