From 9f2ba1c91526e84eb24a38128f8c71d628d1091e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 25 Jun 2016 03:52:03 +0300 Subject: sort algorithms in usage messages --- test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test.py') diff --git a/test.py b/test.py index 6e5379c..0341bf3 100644 --- a/test.py +++ b/test.py @@ -38,7 +38,8 @@ def _format_algorithm(codename): def _format_available_algorithms(): descr = 'available algorithms (in the CODENAME: DISPLAY_NAME format):\n' - return descr + '\n'.join(map(_format_algorithm, registry.get_codenames())) + return descr + '\n'.join(map( + _format_algorithm, sorted(registry.get_codenames()))) def _format_description(): return _format_available_algorithms() -- cgit v1.2.3