fix facet sorting