diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-02 12:07:22 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-02 12:07:22 +0000 |
commit | 56a08cfae5a84c15e297e16336e3468d8f23634e (patch) | |
tree | 8615245df7d2be50475fe744454e1795faf40eb9 | |
parent | b619655e5b0217864302180b09f50b7208b285ae (diff) | |
download | obnam-56a08cfae5a84c15e297e16336e3468d8f23634e.tar.gz |
Don't sort title line
-rwxr-xr-x | obnam-benchmark-summary | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/obnam-benchmark-summary b/obnam-benchmark-summary index 2a90bda4..7edd3a64 100755 --- a/obnam-benchmark-summary +++ b/obnam-benchmark-summary @@ -112,7 +112,9 @@ class ObnamBenchmarkSummary(cliapp.Application): widths = self.compute_column_widths(lines) - for line in sorted(lines): + titles = lines[0] + results = sorted(lines[1:]) + for line in [titles] + results: cells = [] for i, cell in enumerate(line): cells.append('%*s' % (widths[i], cell)) |