JavaScript Extension Development API for Oracle Visual Builder Cloud Service - Classic Applications

Class: operation/js/api/Sorting

An API object providing methods to create sorting rule which can be applied within the custom code.

Version:
  • 17.1.1
Source:
See:

Classes

operation/js/api/Sorting.Criterion

Methods

(static) ascending(property) → {operation/js/api/Sorting}

stable API

Creates an instance of Sorting in ascending order.

Parameters:
Name Type Description
property entity/js/api/Property

Property used for sorting.

Version:
  • 17.1.1
Source:
See:
Returns:
Type
operation/js/api/Sorting
Example

Create an instance of Sorting for the given Property in ascending order.

var employee = Abcs.Entities().findById('my.custom.bop.Employee');
var firstname = employee.getProperty('firstname');
var sorting = Sorting.ascending(firstname);

(static) descending(property) → {operation/js/api/Sorting}

stable API

Creates an instance of Sorting in descending order.

Parameters:
Name Type Description
property entity/js/api/Property

Property used for sorting.

Version:
  • 17.1.1
Source:
See:
Returns:
Type
operation/js/api/Sorting
Example

Create an instance of Sorting for the given Property in descending order.

var employee = Abcs.Entities().findById('my.custom.bop.Employee');
var fistname = employee.getProperty('firstname');
var sorting = Sorting.descending(firstname);

getSortingCriteria() → {Array.<operation/js/api/Sorting.Criterion>}

stable API

Gets an array of Sorting.Criterion assigned to this Sorting.

Version:
  • 17.1.1
Source:
Returns:
Type
Array.<operation/js/api/Sorting.Criterion>