Bitbybit Docs
    Preparing search index...

    Class SortDto<T> (Inputs.Lists)

    A list and a direction for lists.sortNumber and lists.sortTexts.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns SortDto<T>

    Properties

    list: T[]

    The numbers or texts to sort.

    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 smallest or alphabetically first item comes first; when false the order is reversed.

    true