Sort types in rendering xml