order facets in proper hierarchy