kit
    Preparing search index...
    • Type Parameters

      • T extends object

      Parameters

      • data: T

        The object whose properties you want to sort

      • keyMatch: keyof T

        The value to compare to each data object keys, the ones matching it is sorted first, the rest are sorted by localeCompare on keys

      Returns { [k: string]: any }

      a new object