|Question on sortedBy [message #1711063]
||Mon, 12 October 2015 15:44
| Marc FLAUW
Registered: July 2009
I would have a question on how to force a specific sorting order.
I have a set of for loops on packages:
[for (p:Package | self.ownedElement->filter(Package)->sortedBy(name))]<drop/>
[for (p2 :Package| p.ownedElement->filter(Package)->sortedBy(name))]<drop/>
This code sorts my pacjkage in alphabetical order, but for the end packages, the sub-packages are named Classes, Datatypes, Diagrams, but I would have to have them in the order Diagrams first, then Classes, then Datatypes.
I have tried prefixing the name with a number, but having a title like
is not very nice.
Any other way to do custim sorting?
Powered by FUDForum
. Page generated in 0.01989 seconds