def all_sorted(self, sort=None):
        queryset = self.all()
        if sort == 'title':
            return queryset.order_by('title')
        else:
            return queryset.order_by('-created')
Apply to .all() one of the sort orders supported for views
dataset/ETHPy150Open mozilla/django-badger/badger/models.py/SearchManagerMixin.all_sorted