Ordering of resources and extensions in xml file according to dynamic
type