OCLOperators orderBy
No edit summary
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
Sorts the collection on one or more properties.
Sorts the collection on one or more properties.


See also: [[OCLOperators orderDescending|orderDescending]]
'''See also:''' [[Documentation:OCLOperators orderDescending|orderDescending]]


'''Note:''' Earlier OclPs only allowed for ordering attributes on the class of the collection, but since extensions, 2021-01-16, OclPS supports order to follow singlelinks to add attributes to ordering multiple single links steps away. Mind you, ordering on joined information reduces the result set according to the join (it is not an outer join - so data must be present in order to be included in the result set).
'''NOTE:''' Earlier OCLPs only allowed for ordering attributes on the class of the collection, but since extensions, '''2021-01-16''', OCLPS supports order to follow singlelinks to add attributes to ordering multiple single links steps away. Mind you, ordering on joined information reduces the result set according to the join (it is not an outer join - so data must be present in order to be included in the result set).


[[Category:OCLOperators]]
'''Watch the video:''' [https://youtu.be/gs7MknJd0Q0?si=0HkhbflSuVLRQKOj OCL Operators: orderby]
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]
{{Edited|July|12|2025}}

Latest revision as of 05:32, 12 February 2025

This page was created by Alexandra on 2017-08-13. Last edited by Stephanie@mdriven.net on 2025-02-12.

Sorts the collection on one or more properties.

See also: orderDescending

NOTE: Earlier OCLPs only allowed for ordering attributes on the class of the collection, but since extensions, 2021-01-16, OCLPS supports order to follow singlelinks to add attributes to ordering multiple single links steps away. Mind you, ordering on joined information reduces the result set according to the join (it is not an outer join - so data must be present in order to be included in the result set).

Watch the video: OCL Operators: orderby