summaryrefslogtreecommitdiff
path: root/src/jinja2/compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jinja2/compiler.py')
-rw-r--r--src/jinja2/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jinja2/compiler.py b/src/jinja2/compiler.py
index 5fe9349..b629720 100644
--- a/src/jinja2/compiler.py
+++ b/src/jinja2/compiler.py
@@ -556,7 +556,7 @@ class CodeGenerator(NodeVisitor):
visitor.tests,
"tests",
):
- for name in names:
+ for name in sorted(names):
if name not in id_map:
id_map[name] = self.temporary_identifier()