From e263a6847f9a10223654db953b9e93e382b17f19 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 21 Sep 2020 20:01:47 +0000 Subject: [PATCH] Order upcoming classes by nearest date --- webclient/src/Classes.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webclient/src/Classes.js b/webclient/src/Classes.js index 42098ec..dc4a802 100644 --- a/webclient/src/Classes.js +++ b/webclient/src/Classes.js @@ -72,13 +72,19 @@ export function Classes(props) {
Class List
Upcoming
+ +

Ordered by nearest date.

+ {classes ? - x.datetime > now)} /> + x.datetime > now).sort((a, b) => a.datetime > b.datetime ? 1 : -1)} /> :

Loading...

}
Recent
+ +

Ordered by nearest date.

+ {classes ? x.datetime < now)} /> :