Bitbybit Docs
    Preparing search index...

    Class SortJsonDto<T> (Inputs.Lists)

    Objects, the property to compare and a direction for lists.sortByPropValue.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionallist: T[]
      • Optionalclone: boolean
      • OptionalorderAsc: boolean

      Returns SortJsonDto<T>

    Properties

    list: T[]

    The objects to sort; each should carry the property.

    undefined
    
    clone?: boolean

    When true, the list is deep-copied first so the input stays in its old order; when false it is sorted in place.

    true
    
    orderAsc: boolean

    When true, the object with the smallest value comes first; when false the largest.

    true
    
    property: string

    Name of the property whose numeric value decides the order.

    propName