diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-15 22:15:52 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-15 22:15:52 +0100 |
commit | 9d389440a337d18a730621ec15e0770406ecb1c0 (patch) | |
tree | f1c35bba1c620cc83bbd0d4053027b678dfd7f29 /plugins | |
parent | b3ff5eec9c901dcb005c1c1636b3533a1a278c09 (diff) | |
download | prosody-9d389440a337d18a730621ec15e0770406ecb1c0.tar.gz prosody-9d389440a337d18a730621ec15e0770406ecb1c0.zip |
mod_admin_telnet: Use common sort function in s2s:show
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 4 |
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 |