Hex Core JS
    Preparing search index...

    Function comparePartsWithQueryAsc

    • 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 ascending order so the least matching strings appear first.

      Parameters

      • query: string

        The query to sort by.

      Returns ComparisonFunction<[string, string]>