Is there a solution for this? It's been 5 years so maybe anyone has found a nice way to solve this by now :)
Chris,
I don't see any options in java to get to the result you want other then sorting the returned map yourself and as you can't "see" the sorting that is used in the modeler you'll never get the same result. Maybe create a feature request for this?