@mudssky/jsutils
    Preparing search index...

    Function alphabetical

    • Sort an array without modifying it and return the newly sorted value. Allows for a string sorting value.

      Type Parameters

      • T

      Parameters

      • array: readonly T[]
      • getter: (item: T) => string
      • dir: "asc" | "desc" = 'asc'

      Returns T[]