From a9b020c0064ea29415a40d636c69d89f1a568197 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 17 Jun 2017 14:44:22 +0200 Subject: [PATCH] Sort list entries (black-/whitelist) alphabetically before creating the table --- scripts/pi-hole/js/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/list.js b/scripts/pi-hole/js/list.js index 00a0b2ef..b9167065 100644 --- a/scripts/pi-hole/js/list.js +++ b/scripts/pi-hole/js/list.js @@ -61,7 +61,7 @@ function refresh(fade) { { listw.html(""); } - var data = JSON.parse(response); + var data = JSON.parse(response).sort(); if(data.length === 0) { $("h3").hide();