@alwaysblank/denden
    Preparing search index...

    Function sortByProp

    • Sort an array of objects by one of their properties (must be numeric) in ascending or descending order.

      Entries where prop has a non-numeric value will simply be discarded from the returned array.

      Type Parameters

      • O

      Parameters

      • arr: O[]
      • prop: keyof O
      • order: "ASC" | "DESC"

      Returns O[]

      A sorted copy of arr.