fix bug that caused numeric facets to be sorted incorrectly