From 9ad342d1e711b5b19477ad56db44b46ad1cb024f Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 8 Sep 2022 17:40:55 +0200 Subject: Sort list on server startup --- server.js | 1 + 1 file changed, 1 insertion(+) (limited to 'server.js') diff --git a/server.js b/server.js index b11a766..c5ed3ad 100755 --- a/server.js +++ b/server.js @@ -35,6 +35,7 @@ class Database { this.#filename = filename; this.#list = JSON.parse(fs.readFileSync(this.#filename)); this.#lastbackup = new Date(); + this.#sort(); } add_new(votes, string) { -- cgit v1.2.3-70-g09d2