Function: moveComparator()
moveComparator<
T
>(items
,selected
,moveDirection
): (a
,b
) =>number
Makes a sorting comparator (a function to pass to Array.sort()
) which
moves specified subset of items either to the beginning of the array
or to the end.
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
| readonly |
| readonly |
|
|
Returns
Function
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
number