Sets the sorting type of a sorted-object.
An instance of sorted-object or a subclass.
The sort type to set.
is a list-panel, then
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
method that calls sort-object-items-by. You can also define
methods on subclasses of list-panel to perform other tasks each time the items are sorted.