diff options
author | Andy Grover <agrover@redhat.com> | 2012-12-03 15:26:49 -0800 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2012-12-03 15:26:49 -0800 |
commit | 263459706e405d411ba38160dd68ef133243ac0a (patch) | |
tree | 2116db88f2352bc30abb4d05e49424198775604e /configshell | |
parent | 10ac93aacf7135ec0f5dda603790bcf51a7dde8d (diff) | |
download | configshell-fb-263459706e405d411ba38160dd68ef133243ac0a.tar.gz |
Improve comment
Signed-off-by: Andy Grover <agrover@redhat.com>
Diffstat (limited to 'configshell')
-rw-r--r-- | configshell/node.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configshell/node.py b/configshell/node.py index a6f1046..7ce98a4 100644 --- a/configshell/node.py +++ b/configshell/node.py @@ -808,7 +808,8 @@ class ConfigNode(object): else: return (str(s), None) - # sort by ending number, then alpha + # Sort ending numbers numerically, so we get e.g. "lun1, lun2, lun10" + # instead of "lun1, lun10, lun2". children = sorted(root.children, key=lambda c: sorting_keys(c)) line = "" |