diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-04 15:13:52 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-04 15:13:52 +0100 |
commit | 9e01c3ff642670c8b10a20686f7a6e100ad08fe9 (patch) | |
tree | 746decd3ce1be20cd678230f39915b0d1c8706c0 | |
parent | f902e414f63ae70f74c414a57c0c3cfe26ba693d (diff) | |
download | prosody-9e01c3ff642670c8b10a20686f7a6e100ad08fe9.tar.gz prosody-9e01c3ff642670c8b10a20686f7a6e100ad08fe9.zip |
mod_admin_telnet: Sort stats by name
-rw-r--r-- | plugins/mod_admin_telnet.lua | 2 |
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; |