#39 Fix tag sort

Merged
getty merged 1 commits from getty/gr/fix-tag-sort into getty/master 4 years ago
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lc/model.py

+ 1 - 1
lc/model.py

@@ -182,7 +182,7 @@ class User(Model):
     def get_tags(self) -> List[v.Tag]:
     def get_tags(self) -> List[v.Tag]:
         return sorted(
         return sorted(
             (t.to_view() for t in self.tags),  # type: ignore
             (t.to_view() for t in self.tags),  # type: ignore
-            key=lambda t: t.name,
+            key=lambda t: t.name.upper(),
         )
         )
 
 
     def get_related_tags(self, tag: "Tag") -> List[v.Tag]:
     def get_related_tags(self, tag: "Tag") -> List[v.Tag]: