@wxn0brp/db-core
    Preparing search index...

    Function sortByIds

    • Sorts an array of objects by their _id property

      Type Parameters

      • T extends { _id: string }

      Parameters

      • objects: T[]

      Returns T[]

    • Sorts an array of objects by their _id property

      Type Parameters

      • T extends Record<string, any>

      Parameters

      • objects: T[]
      • key: string

      Returns T[]