Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am looking for a macro to put my levels in alphabetical order. Does anybody know how to do this?
Solved! Go to Solution.
Community notifications may experience intermittent interruptions between 10–12 November during scheduled maintenance. We appreciate your patience.
I am looking for a macro to put my levels in alphabetical order. Does anybody know how to do this?
Solved! Go to Solution.
Here is a macro that should do what you want
ENTITY LIST sortedLevels = sort(folder('level'), 'name')
ORDERSESSION Level $sortedLevels[0].name FIRST
int i = 0
FOREACH lvl IN sortedLevels {
IF $i+1 < size(sortedLevels) {
string previousLevel = $sortedLevels[i].name
string currentLevel = $sortedLevels[i+1].name
ORDERSESSION Level $currentLevel AFTER $previousLevel
$i = $i + 1
}
}
Works perfect, thank you very much.