Sort order for the returned types. Supported values:
NAME — sort by the type's name.
PARENT_NAME — sort by parent type first, followed by child types sorted by name.
EXT_ID — sort by the type's external ID.
PARENT_EXT_ID — sort by parent type first, followed by child types sorted by external ID.
ID — sort by the type's internal ID.
PARENT_ID — sort by parent type first, followed by child types sorted by internal ID.
Note that the PARENT sort orders sort the types in preorder, with the parent type first followed by the child types.
This also means that the entire type hierarchy can be reconstructed from this order, without the need to go through every type more than once.