-
Notifications
You must be signed in to change notification settings - Fork 0
sortable
Michael Rojas edited this page Jun 24, 2021
·
1 revision
dastal - v5.0.0 / Sortable
Represents an object containing a set of elements that can be sorted.
Name |
---|
T |
-
Sortable
↳ List
▸ sort(compareFn
): Sortable<T>
Sorts the elements in place.
Name | Type | Description |
---|---|---|
compareFn |
CompareFn<T> | A function used to determine the order of elements. It is expected to return: - A negative value if first argument < second argument - Zero if first argument == second argument - A positive value if first argument > second argument |
Sortable<T>
The object this method was called on