Skip to main content

Home > @jsplumb/util > sortHelper

sortHelper() function#

Sorts an array. Seems quite unnecessary. Only used in one place in the codebase. Marking deprecated.

Signature:

export declare function sortHelper<T>(_array: Array<T>, _fn: SortFunction<T>): Array<T>;

Parameters#

ParameterTypeDescription
_arrayArray<T>
_fnSortFunction<T>

Returns:

Array<T>