Sorting by a direct property(e.g. "name", "body", "visibility", etc) works well:
- Code: Select all
#foreach($e in $sorter.sort($elementList, ‘name’))
$e.name( $e.tags.CustomSort.sortPriority )
#end
But sorting by a tag of stereotype seems not working:
- Code: Select all
#foreach($e in $sorter.sort($elementList, ‘tags.CustomSort.sortPriority’))
$e.name( $e.tags.CustomSort.sortPriority )
#end
Is there something wrong with this code, or is stereotype tags is not supported by sortTool API?