Browse Source

Order tags by name only, not item count

Jeremy Stretch 7 years ago
parent
commit
0c4495eb39
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/utilities/views.py

+ 1 - 1
netbox/utilities/views.py

@@ -130,7 +130,7 @@ class ObjectListView(View):
 
         # Construct queryset for tags list
         if hasattr(model, 'tags'):
-            tags = model.tags.annotate(count=Count('taggit_taggeditem_items')).order_by('-count', 'name')
+            tags = model.tags.annotate(count=Count('taggit_taggeditem_items')).order_by('name')
         else:
             tags = None