From a0e3c881a48e6374d30bed86f0a4bc6882f1c5b1 Mon Sep 17 00:00:00 2001 From: Sebastian Lay Date: Tue, 17 Aug 2021 02:38:21 +0200 Subject: [PATCH] Added option to sort by date --- index.html | 1 + js/script-index.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/index.html b/index.html index 89cb636..2d24c87 100644 --- a/index.html +++ b/index.html @@ -57,6 +57,7 @@ + diff --git a/js/script-index.js b/js/script-index.js index 5c0c454..8eafed9 100644 --- a/js/script-index.js +++ b/js/script-index.js @@ -57,6 +57,8 @@ const app = new Vue({ return a.price - b.price; case 'iso': return a.iso - b.iso; + case 'date': + return a.launched - b.launched; } }); if(sortDir === 'asc') {