this keyword refers to the candidate element declared in any outer scope (the semantics of the this keyword are
not altered when an explicit alias is used).
If omitted, the this keyword can be used to refer to the candidate element of set.
A Set<T> containing the elements of set lexicographically ordered by the order-clause-1, order-clause-2, ..., order-clause-n expressions in the specified direction.
The order-clause-1 expression is evaluated for each element of set and the result is sorted by the values returned by the expression. If the order-clause-1 expression returns the same value for two elements in the set, the order-clause-2, ..., order-clause-n expressions are evaluated and compared to define the order of the elements. If the last expression order-clause-n returns the same value for two elements in the set, the order of these elements is undefined in the resulting Set<T>.
If order-clause-i returns a persistent value, the identity fields of the returned value are used to determine the sort order. If the returned value has more than one identity field, the resulting Set<T> is ordered lexicographically by the identity fields of the returned value in the order specified in the <PrimaryKey> element.
alias (if present) can be used to refer to the candidate element of set; otherwise, the this keyword can be used.
<Member name="Orders"
Oql="extentof(Order)[o: o.Customer == this].OrderBy([o: o.Product.Name ascending])" />
Set´1.Order | Implicit Functions | OqlReference.Chapter9