diff --git a/boards/models/tag.py b/boards/models/tag.py --- a/boards/models/tag.py +++ b/boards/models/tag.py @@ -17,7 +17,8 @@ class TagManager(models.Manager): """ return self.filter(thread__archived=False)\ - .annotate(num_threads=Count('thread')).filter(num_threads__gt=0) + .annotate(num_threads=Count('thread')).filter(num_threads__gt=0)\ + .order_by('-required') class Tag(models.Model, Viewable):