Sort the resource type and building facets by index.