summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
diff options
context:
space:
mode:
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))