All available sort functions.

interface SortAPI {
    objectByPath: <T extends { [key: string | number | symbol]: any }>(
        options?: ObjectByPathOptions<T>,
    ) => ObjectByPath<T>;
}
Index
objectByPath: <T extends { [key: string | number | symbol]: any }>(
    options?: ObjectByPathOptions<T>,
) => ObjectByPath<T>

Creates an instance of Sort.ObjectByPath which is a managed sorting mechanism for dynamic reducers providing several default sort comparisons for object properties with additional customization for complex data types.

Note that either a store with Sort.ObjectByPathData should be provided or initial prop and state values specified for the internal store.

Type Declaration