aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plot.py3
-rw-r--r--test.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/plot.py b/plot.py
index 45140f6..2681628 100644
--- a/plot.py
+++ b/plot.py
@@ -51,7 +51,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()
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()