From ba47122f50e8ea53bc41a6d5d9248fbe90069605 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 23 Nov 2016 21:09:11 +0100 Subject: [PATCH] Sort servers by sid for consistent output --- tsstats/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/__main__.py b/tsstats/__main__.py index 66ad78f..bb1ffa1 100644 --- a/tsstats/__main__.py +++ b/tsstats/__main__.py @@ -87,7 +87,7 @@ def main(configuration): online_dc=configuration.getboolean('General', 'onlinedc') ) render_servers( - servers, + sorted(servers, key=lambda s: s.sid), output=abspath(configuration.get('General', 'output')), template=configuration.get('General', 'template'), datetime_fmt=configuration.get('General', 'datetimeformat'),