Helpful
    Preparing search index...

    Represents a sorter algorithm that can help with building sorts based on common techniques.

    interface IZSorter {
        index(subject?: string): number;
        sort(subject?: string): IZSort[];
        sorted(subject?: string): ZSortDirection | undefined;
    }

    Implemented by

    Index

    Methods

    Methods

    • Gets the current sort index for the subject or -1 if it is not sorted.

      This should be 1 based.

      Parameters

      • Optionalsubject: string

        The subject to sort. If this is undefined, the subject should be considered the empty string (the object itself).

      Returns number

      The current sort index.