aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
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
commit51c4d0a0e4d0b1d83bdcfc779bcc9e83be4f3d08 (patch)
tree746decd3ce1be20cd678230f39915b0d1c8706c0 /plugins/mod_admin_telnet.lua
parentd020a0b57782846653d6145d388143df5b616c64 (diff)
downloadprosody-51c4d0a0e4d0b1d83bdcfc779bcc9e83be4f3d08.tar.gz
prosody-51c4d0a0e4d0b1d83bdcfc779bcc9e83be4f3d08.zip
mod_admin_telnet: Sort stats by name
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-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;