aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-08-25 10:06:42 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-08-25 10:06:42 +0200
commit2125c4eaa3b847965d6b6faa566cd080226f0ce0 (patch)
treefe942f8e86bd563d51d245f026fd376efdb2e598
parent718404d6dc3d85d7112edad233becc7797291a4f (diff)
downloadramaskrik-social-2125c4eaa3b847965d6b6faa566cd080226f0ce0.tar.gz
ramaskrik-social-2125c4eaa3b847965d6b6faa566cd080226f0ce0.tar.bz2
ramaskrik-social-2125c4eaa3b847965d6b6faa566cd080226f0ce0.zip
app.js: Render schedules in sorted order.
-rw-r--r--public/js/app.js2
1 files changed, 1 insertions, 1 deletions
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)