ORDA .orderBy - using expression as criteria

I am converting several methods in an existing V17 db to ORDA. Realizing much cleaner code.
However I have not found a way to implement the 4D ORDER BY FORMULA construct in ORDA.

For example ordering an EntitySelection by the substring of a field: substring(somefield;2;4) where ‘somefield’ is type Alpha: EntitySelection.orderBy(“substring(Product_ID;2;4)”).

Also tried using a collection to specify the criteria. Surely I am missing something.

Thanks.

: Gregory LINDELL

Surely I am missing something.

no, order by formula is so far not implemented in ORDA, feature request already in our backlog.

Hi Gregory,

For collections, there is the orderByMethod()

http://livedoc.4d.com/4D-Language-Reference-17-R3/Collections/collectionorderByMethod.301-3907488.en.html