From 2125c4eaa3b847965d6b6faa566cd080226f0ce0 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 25 Aug 2020 10:06:42 +0200 Subject: app.js: Render schedules in sorted order. --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 34c6273..309625f 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -153,7 +153,7 @@ window.addEventListener("load", function() { this.response.forEach(_add) console.log("Screenings in " + screenings_by_date.size + " days: ") - for (let date of screenings_by_date.keys()) { + for (let date of Array.from(screenings_by_date.keys()).sort()) { console.log(date) let s = screenings_by_date.get(date) -- cgit v1.2.3