OINO TS
    Preparing search index...

    Class OINOQueryOrder

    Class for ordering select results on a number of columns.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructor for OINOQueryOrder.

      Parameters

      • column_or_array: string | string[]

        single or array of columns to order on

      • descending_or_array: boolean | boolean[]

        single or array of booleans if ordes is descending

      Returns OINOQueryOrder

    Properties

    columns: string[]
    descending: boolean[]

    Methods

    • Constructor for OINOQueryOrder as parser of http parameter.

      Supports comma separated list of column orders formatted as :

      • column - order by column in ascending order
      • column ASC|DESC - order by single either ascending or descending order
      • column+|- - order by single either ascending or descending order

      Parameters

      • orderString: string

        string representation of order from HTTP-request

      Returns OINOQueryOrder