diff --git a/app/shared_config_manager/templates/source.html.mako b/app/shared_config_manager/templates/source.html.mako
index a68496b7..2fd47136 100644
--- a/app/shared_config_manager/templates/source.html.mako
+++ b/app/shared_config_manager/templates/source.html.mako
@@ -92,8 +92,8 @@
${key_format(key) | h}: ${', '.join(value) | h}
%elif isinstance(value, dict):
${key_format(key) | h}:
- %for k, v in value.items():
- ${k | h} = ${v | h}
+ %for k in sorted(value.keys()):
+ ${k | h} = ${value[k] | h}
%endfor
%else:
${key_format(key) | h}: ${value | h}