Fallback for when sortorder is explicitly set.

Useful for when programmatically creating and updating content (e.g. when importing). This fix allows groupings with sortorders to be saved properly.