Skip to content

Commit

Permalink
Fixed ID sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Dialpuri committed Nov 26, 2023
1 parent d043bd1 commit d6d41ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webserver/src/components/DatabaseComponents/SugarList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d6d41ea

Please sign in to comment.