Modules

filter

 

Objects/Functions

module (N/workbook)

SuiteScript 2.0

workbook.createSort(options)

{workbook}.createSort({ascending: {boolean},caseSensitive: {boolean},locale: {query.SortLocale},nullsLast: {boolean}})

N/workbook Module
workbook.createSort()
Method Description: Creates a sort, which includes indicators for sorting in ascending order, case sensitivity, sort locale, and whether nulls should be placed last.
Returns: workbook.Sort
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/workbook Module
Sibling Module Members: N/workbook Module Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=workbook.createSort(options)

Example:

// Code Example 1
// Add additional code
//...
// Create a default Sort
var mySort = workbook.createSort({});

// Create a custom descending Sort
var mySort = workbook.createSort({
ascending: false,
caseSensitive: true,
nullsLast: true,
locale: query.SortLocale.US_EN
});
//...
// Add additional code

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