Hex Core JS
    Preparing search index...

    Function comparePartsWithQueryDesc

    • Comparison function that sorts an array using the given query. Uses a multi-level approach so that primary text matches weigh more than secondary. Sorts in descending order so the most matching strings appear first.

      Parameters

      • query: string

        The query to sort by.

      Returns ComparisonFunction<[string, string]>