• Sorts the specified items by the specified field.

    Type Parameters

    • T

      Type of item in the specified items array.

    Parameters

    • items: T[]

      Items to sort.

    • field: string

      Field to sort by.

    Returns T[]

    Values sorted by the specified field.