From d6d41eaa2bb9cc23415a165acfe7679e61123d9c Mon Sep 17 00:00:00 2001 From: Jordan Dialpuri <44945647+Dialpuri@users.noreply.github.com> Date: Sun, 26 Nov 2023 16:50:47 +0000 Subject: [PATCH] Fixed ID sort --- webserver/src/components/DatabaseComponents/SugarList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver/src/components/DatabaseComponents/SugarList.tsx b/webserver/src/components/DatabaseComponents/SugarList.tsx index 19f41eb9..84087df4 100644 --- a/webserver/src/components/DatabaseComponents/SugarList.tsx +++ b/webserver/src/components/DatabaseComponents/SugarList.tsx @@ -14,11 +14,11 @@ function custom_sort(a, b) { return 1; } - if (split_a[2] < split_b[2]) { + if (Number(split_a[2]) < Number(split_b[2])) { return -1; } - if (split_b[2] < split_a[2]) { + if (Number(split_b[2]) < Number(split_a[2])) { return 1; }