Advanced collection sorting syntax
- Last Updated: December 30, 2020
- 3 minute read
- Corticon
- Version 7.2
- Documentation
Collection syntax contains some subtleties worth learning. It is helpful when writing collection expressions to step through them, left to right, as though you were reading a sentence. This helps you better understand how the pieces combine to create the full expression. It also helps you to know what else you can safely add to the expression to increase its utility. Use this approach in order to dissect the following expression:
Collection1 -> sortedBy(attribute1) -> last.attribute2