The "Sort by active state" processor in the Facets module does not correctly order facet results based on their active state. The current implementation of the sortResults() method does not properly compare the active state of two items, resulting in facet items not being sorted as expected. This affects the usability of facets, as users may not see active filters grouped together or in the intended order.
Active
3.0
Code