Mercurial > prosody-modules
diff mod_http_index/mod_http_index.lua @ 2927:7953b7dde6e7
mod_http_index: Sort list of HTTP applications by name
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 10 Mar 2018 05:01:15 +0100 |
parents | 9376e870f0e1 |
children | 4af114684e0a |
line wrap: on
line diff
--- a/mod_http_index/mod_http_index.lua Sat Mar 10 05:00:28 2018 +0100 +++ b/mod_http_index/mod_http_index.lua Sat Mar 10 05:01:15 2018 +0100 @@ -36,6 +36,7 @@ }); end end + table.sort(http_apps, function (a, b) return a.name < b.name; end); event.response.headers.content_type = "text/html"; return render(base_template, { title = "HTTP Apps";