def sort_choices(self, qs, choices):
        if self.order_by_count:
            choices.sort(key=operator.attrgetter('count'), reverse=True)
        return choices
Sorts the choices by applying order_by_count if applicable.
dataset/ETHPy150Open ionelmc/django-easyfilters/src/django_easyfilters/filters.py/Filter.sort_choices