Ordering by metadata/attribute (hierarchical classes)