Skip to content

Commit

Permalink
Fix order list sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliveriver committed Oct 17, 2024
1 parent 8ed862d commit 039df4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/user-interface/OrderList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const OrderList = () => {

if (orders.length === 0) return null;

const timelines = filterUnique(orders.map(({ location }) => location.timeline)).sort();
const timelines = filterUnique(orders.map(({ location }) => location.timeline)).sort(
(a, b) => a - b,
);

const maxHeight = window.innerHeight - 168;

Expand Down

0 comments on commit 039df4c

Please sign in to comment.