summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
diff options
context:
space:
mode:
authorHamish Downer <hamish@foobacca.co.uk>2013-10-12 18:46:03 +0000
committerHamish Downer <hamish@foobacca.co.uk>2013-10-13 18:14:01 +0000
commit3df004fe0ffb07d27e9b1aa7095ca8bb9c6cdbc3 (patch)
treeae2418172809b70c9d7e3ede093f0e4d0e06e4c1 /alot/commands/search.py
parent55f2c42071e60eedf0860233b19a12fbb54c7755 (diff)
in retagprompt, sort the tags
So the tags are in a predictable order.
Diffstat (limited to 'alot/commands/search.py')
-rw-r--r--alot/commands/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/search.py b/alot/commands/search.py
index 4a551be5..081611e7 100644
--- a/alot/commands/search.py
+++ b/alot/commands/search.py
@@ -105,7 +105,7 @@ class RetagPromptCommand(Command):
tags.append('"%s"' % tag)
else:
tags.append(tag)
- initial_tagstring = ','.join(tags) + ','
+ initial_tagstring = ','.join(sorted(tags)) + ','
ui.apply_command(PromptCommand('retag ' + initial_tagstring))