changeset 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 1dd1e5a1c707
children b0d92332b87f
files mod_http_index/mod_http_index.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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";