Fixes 362

This was a problem with the sortOrder not being derived correctly.