aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-15 22:15:52 +0100
committerKim Alvefur <zash@zash.se>2019-12-15 22:15:52 +0100
commitfac877feaa6c394469614b4604f1723b6bb3b681 (patch)
treef1c35bba1c620cc83bbd0d4053027b678dfd7f29
parent13622b141e299ba3df60b82153084f34bdcb8e6f (diff)
downloadprosody-fac877feaa6c394469614b4604f1723b6bb3b681.tar.gz
prosody-fac877feaa6c394469614b4604f1723b6bb3b681.zip
mod_admin_telnet: Use common sort function in s2s:show
-rw-r--r--plugins/mod_admin_telnet.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index a454f568..9468be62 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -781,8 +781,8 @@ function def_env.s2s:show(match_jid, annotate)
-- Sort by local host, then remote host
table.sort(s2s_list, function(a,b)
- if a.l == b.l then return a.r < b.r; end
- return a.l < b.l;
+ if a.l == b.l then return _sort_hosts(a.r, b.r); end
+ return _sort_hosts(a.l, b.l);
end);
local lasthost;
for _, sess_lines in ipairs(s2s_list) do