Ability to reorder global elements

This will also implicitly resolve this older request: