From 9c6b10a1666ec43201fe9e6c987de5395e6b37f8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 4 Oct 2017 09:09:03 -0400 Subject: [PATCH] Sort output from confetty Sorting can greatly improve the readability of some confluent functionality. --- confluent_client/bin/confetty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index a8afe293..59dcac2f 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -284,7 +284,7 @@ def print_result(res): if 'databynode' in res: print_result(res['databynode']) return - for key in res.iterkeys(): + for key in sorted(res): notes = [] if res[key] is None: attrstr = '%s=""' % key