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 | 51c4d0a0e4d0b1d83bdcfc779bcc9e83be4f3d08 (patch) | |
tree | 746decd3ce1be20cd678230f39915b0d1c8706c0 | |
parent | d020a0b57782846653d6145d388143df5b616c64 (diff) | |
download | prosody-51c4d0a0e4d0b1d83bdcfc779bcc9e83be4f3d08.tar.gz prosody-51c4d0a0e4d0b1d83bdcfc779bcc9e83be4f3d08.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; |