Column.sort

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

The sort order of the column.

Use search.createColumn(options) and a value from the search.Sort enum to set the value of this property. If Column.sort is not set, the column is not sorted in any particular order.

After you create a column, you cannot change the sort order of the column. If you use the same column in another search and specify a new sort order, the previous sort order is still used.

Type

search.Sort enum

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/search Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/search Module Script Samples.

          //Add additional code 
...
var columnObj = search.createColumn({
    name: 'invoice',
    sort: search.Sort.DESC
});
...
//Add additional code 

        

Related Topics

search.Column
N/search Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices