From 912be7c5966ad7343ed6f3797fd71b4476d54004 Mon Sep 17 00:00:00 2001 From: w1r0x Date: Tue, 10 Jan 2017 15:32:33 +0300 Subject: [PATCH] Alphabetical sort for config files. Fixes #11 --- surok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surok.py b/surok.py index 2a628e8..3469a2b 100755 --- a/surok.py +++ b/surok.py @@ -32,7 +32,7 @@ f.close() def get_configs(): confs = [f for f in listdir(conf['confd']) if isfile( join(conf['confd'], f))] - return confs + return sorted(confs) # Get Surok App configuration