Index: tools/telemetry/telemetry/benchmark_runner.py |
diff --git a/tools/telemetry/telemetry/benchmark_runner.py b/tools/telemetry/telemetry/benchmark_runner.py |
index df5e4cc6ffdd6fa16d3e20e9cda60e4f00fdcb20..aa9476b2dec42ae14a02f59d8a2f7984812d5e42 100644 |
--- a/tools/telemetry/telemetry/benchmark_runner.py |
+++ b/tools/telemetry/telemetry/benchmark_runner.py |
@@ -69,6 +69,9 @@ def PrintBenchmarkList(benchmarks, possible_browser, output_pipe=sys.stdout): |
print >> output_pipe, 'Available benchmarks %sare:' % ( |
'for %s ' % possible_browser.browser_type if possible_browser else '') |
+ |
+ # Sort the benchmarks by benchmark name. |
+ benchmarks = sorted(benchmarks, key=lambda b: b.Name()) |
for b in benchmarks: |
if not possible_browser or _IsBenchmarkEnabled(b, possible_browser): |
print >> output_pipe, format_string % (b.Name(), b.Description()) |