From 496ed185308e5c8faa4411ee8830ec3aa8b3655e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 7 Feb 2017 10:37:15 +1100 Subject: [PATCH] autotest: sort libraries by name --- Tools/autotest/param_metadata/param_parse.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/param_metadata/param_parse.py b/Tools/autotest/param_metadata/param_parse.py index c7ca69714b..5056cc094e 100755 --- a/Tools/autotest/param_metadata/param_parse.py +++ b/Tools/autotest/param_metadata/param_parse.py @@ -173,8 +173,11 @@ for library in libraries: debug("Processed %u documented parameters" % len(library.params)) -libraries = alllibs +# sort libraries by name +alllibs = sorted(alllibs, key=lambda x : x.name) +libraries = alllibs + def is_number(numberString): try: float(numberString)