Popular sorting functionality for facets is not working properly fix #461