Type Alias Sort<T>

Sort: {
    compare: CompareFn<T>;
    subscribe?: (indexUpdate: IndexUpdateFn) => () => void;
}

Defines an object to configure sort functionality.

Type Parameters

  • T

    any - Type of data.

Type declaration

  • compare: CompareFn<T>

    A callback function that compares two values.

  • Optionalsubscribe?: (indexUpdate: IndexUpdateFn) => () => void

    Optional subscribe function following the Svelte store / subscribe pattern.