Type alias DynDataSort<T>

    DynDataSort<T>: {
        compare: DynCompareFn<T>;
        subscribe?: ((indexUpdate) => (() => void));
    }

    Defines an object to configure sort functionality.

    Type Parameters

    • T

    Type declaration

    • compare: DynCompareFn<T>

      A callback function that compares two values.

    • Optional subscribe?: ((indexUpdate) => (() => void))

      Optional subscribe function following the Svelte store / subscribe pattern.

        • (indexUpdate): (() => void)
        • Parameters

          Returns (() => void)

            • (): void
            • Returns void