From 9bd2332d2c5af6166ab276e464467e73ab807df2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 Dec 2017 11:00:58 +0530 Subject: [PATCH] Fix #1736313 [zsh completion does not build reproducibly](https://bugs.launchpad.net/calibre/+bug/1736313) --- src/calibre/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index 17b55cbe41..841e0b296d 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -329,7 +329,7 @@ class ZshCompleter(object): # {{{ '--input-encoding' not in o._long_opts] if not opts: continue - opts = '\\\n '.join(tuple(self.get_options(opts))) + opts = '\\\n '.join(tuple(sorted(self.get_options(opts)))) w('\n%s() {'%(func%fmt)) w('\n _arguments -s \\\n ' + opts) w('\n}\n')