SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface Criteria

    interface Criteria {
        collatorOptions?: CollatorOptions | Record<ScalarType, CollatorOptions>;
        customList?: string;
        dxfId?: any;
        iconId?: number;
        iconSet?: IStyle.IconSet;
        reverse?: boolean;
        sortOn?: ISort.SortOn;
    }
    Index
    collatorOptions?: CollatorOptions | Record<ScalarType, CollatorOptions>

    Additional options for sorting.

    • Excel has a matchCase flag but we use Intl.CollatorOptions.
    • Excel has Normal | TextAsNumber but we use Intl.CollatorOptions.
    customList?: string

    Sort by a custom list.

    PLACEHOLDER - This is a placeholder for future use.

    dxfId?: any

    Used with sortOn === cellColor or fontColor

    PLACEHOLDER - This is a placeholder for future use.

    iconId?: number

    Used with sortOn === Icon

    PLACEHOLDER - This is a placeholder for future use.

    iconSet?: IStyle.IconSet

    Used with sortOn === Icon

    PLACEHOLDER - This is a placeholder for future use.

    reverse?: boolean

    Determines whether to reverse the default sort order.

    false - (sorts in the default order, typically ascending)
    

    The reverse flag flips the sort order. When set to true, the sort will be performed in reverse order compared to the default (which is usually ascending).

    This flag is data-type agnostic, meaning it will reverse the default order regardless of whether the data is numeric, alphabetic, or complex (e.g., booleans, lists).

    Example usage:

    const criteria: ISort.Criteria = {
    reverse: true, // Sorts in descending order (for numbers/alphabetic)
    };
    sortOn?: ISort.SortOn

    Only value is currently supported