diff options
-rw-r--r-- | alot/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py index 78744edf..3e5e9dce 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -418,7 +418,7 @@ def tag_cmp(a, b): Sorting tags using this function puts all tags of length 1 at the beginning. This groups all tags mapped to unicode characters. ''' - if min(len(a), len(b)) == 1: + if min(len(a), len(b)) == 1 and max(len(a), len(b)) > 1: return cmp(len(a), len(b)) else: return cmp(a.lower(), b.lower()) |