diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2
index 36fbe47825..c04ee4aa63 100644
--- a/docs/templates/plugin.rst.j2
+++ b/docs/templates/plugin.rst.j2
@@ -98,7 +98,7 @@ Options
{% endif %}
comments |
- {% for key, value in options.items() recursive %}
+ {% for key, value in options|dictsort recursive %}
{# parameter name with introduced label #}
@@ -221,7 +221,7 @@ Common return values are documented :ref:`here `, the foll
type |
sample |
|
- {% for key, value in returndocs.items() recursive %}
+ {% for key, value in returndocs|dictsort recursive %}
|