Pathfinder 1e for Foundry VTT
    Preparing search index...

    Function sortArrayByName

    • Internal

      A locale-safe insertion sort of an Array of Objects, not in place. Ignores punctuation and capitalization. name properties in objects will be lowercased.

      Type Parameters

      • T

      Parameters

      • inputArr: (T & { name: string })[]

        Array to be sorted. Each element must have a name property set

      Returns T[]

      • New sorted Array