From 9d91c6abd0de0c6d01d2b2d76e2cbfcaf0496482 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Mon, 19 Apr 2010 14:05:59 +0100
Subject: [PATCH] _PrintGroupedParams: sort before printing

It's a lot easier, when looking at the output, if you can search the
parameter you're looking for alphabetically.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 scripts/gnt-cluster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster
index 0d5bbe4b3..1733a4237 100755
--- a/scripts/gnt-cluster
+++ b/scripts/gnt-cluster
@@ -225,7 +225,7 @@ def _PrintGroupedParams(paramsdict, level=1):
 
   """
   indent = "  " * level
-  for item, val in paramsdict.items():
+  for item, val in sorted(paramsdict.items()):
     if isinstance(val, dict):
       ToStdout("%s- %s:", indent, item)
       _PrintGroupedParams(val, level=level + 1)
-- 
GitLab