Sort types in rendering xml
Index strings in proper order