Constants that describe the direction the search results should be sorted (ascending vs. descending).
The following code:
resultContext.getResults(
function (resultError, searchResult) {
// Process results
},
{
sortBy: 'Processes|name',
sortDirection: 'asc'
}
)
Can be rewritten to use SortConstants
as follows:
resultContext.getResults(
function (resultError, searchResult) {
// Process results
},
{
sortBy: 'Processes|name',
sortDirection: SortConstants.ASC
}
)
- Source:
Members
(static) ASC
Sort ascending
- Source:
(static) DESC
Sort descending
- Source: