Provides the storage and sequencing of a managed sort function. The sort function set may be a bespoke function
or a Data.Sort object containing an compare, and subscribe attributes; compare is the only
required attribute.
Note: You can set a compare function that also has a subscribe function attached as the subscribe attribute.
If a subscribe function is provided the sort function can notify any updates that may change sort order and
this triggers an index update.
This class forms the public API which is accessible from the .sort getter in the main reducer implementation.
Provides the storage and sequencing of a managed sort function. The sort function set may be a bespoke function or a Data.Sort object containing an
compare
, andsubscribe
attributes;compare
is the only required attribute.Note: You can set a compare function that also has a subscribe function attached as the
subscribe
attribute. If a subscribe function is provided the sort function can notify any updates that may change sort order and this triggers an index update.This class forms the public API which is accessible from the
.sort
getter in the main reducer implementation.