@hat-open/util
    Preparing search index...

    Function _sortBy

    • Sort array based on results of appling function to it's elements

      Resulting order is determined by comparring function application results with greater then and lesser then operators.

      Type Parameters

      • T

      Parameters

      • fn: (x: T) => any
      • arr: T[]

      Returns T[]