Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Column.sort

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Column.sort for more information.

N/search Module
Column.sort
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: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/search Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Column.sort

Example:

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

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_456142211913.html