# HG changeset patch # User Kim Alvefur # Date 1520654475 -3600 # Node ID 7953b7dde6e7eabd5bfa3550d3e5169e55be06d0 # Parent 1dd1e5a1c70763fefd4f92d2ed5d4f5a83e16437 mod_http_index: Sort list of HTTP applications by name diff -r 1dd1e5a1c707 -r 7953b7dde6e7 mod_http_index/mod_http_index.lua --- 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";