aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-04 15:13:52 +0100
committerKim Alvefur <zash@zash.se>2019-01-04 15:13:52 +0100
commit9e01c3ff642670c8b10a20686f7a6e100ad08fe9 (patch)
tree746decd3ce1be20cd678230f39915b0d1c8706c0
parentf902e414f63ae70f74c414a57c0c3cfe26ba693d (diff)
downloadprosody-9e01c3ff642670c8b10a20686f7a6e100ad08fe9.tar.gz
prosody-9e01c3ff642670c8b10a20686f7a6e100ad08fe9.zip
mod_admin_telnet: Sort stats by name
-rw-r--r--plugins/mod_admin_telnet.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index cd9f8078..5ce504f8 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -1543,7 +1543,7 @@ function def_env.stats:show(filter)
local stats, changed, extra = require "core.statsmanager".get_stats();
local available, displayed = 0, 0;
local displayed_stats = new_stats_context(self);
- for name, value in pairs(stats) do
+ for name, value in iterators.sorted_pairs(stats) do
available = available + 1;
if not filter or name:match(filter) then
displayed = displayed + 1;