An API object providing methods to create sorting rule which can be applied within the custom code.
- Version:
- 17.1.1
- Source:
- See:
-
- Abcs.Operations().read(..) to use
Sorting
from Application Builder custom code.
- Abcs.Operations().read(..) to use
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:
-
- Abcs.Operations().read(..) to use
Sorting
from Application Builder custom code.
- Abcs.Operations().read(..) to use
Returns:
Example
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:
-
- Abcs.Operations().read(..) to use
Sorting
from Application Builder custom code.
- Abcs.Operations().read(..) to use
Returns:
Example
var employee = Abcs.Entities().findById('my.custom.bop.Employee');
var fistname = employee.getProperty('firstname');
var sorting = Sorting.descending(firstname);