@halix/action-sdk
    Preparing search index...

    Function sortObjectArray

    • sortObjectArray is a helper function that sorts the passed array in place by the given attributes. Sorting by nested attributes in the form of a delimited attribute string are supported (e.g., "attribute.nestedAttribute").

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array to sort

      • sort: SortField[]

        Array of sort field specifications

      Returns T[]

      The sorted array