OCLOperators orderGeneric
This page was created by Alexandra on 2017-08-13. Last edited by 62.169.16.147 on 2026-09-12.
Sorts the list of properties with interchangeable sort order: (expr1, OclSortDirection::ascending, expr2, OclSortDirection::descending...)
Example[edit source]
If We have a class Car with attributes Name and Country.
We can use orderGeneric like this.
Car.allInstances->orderGeneric(Name, OclSortDirection::ascending)
