Skip to content

Commit

Permalink
fix ordering of builds, latest to oldest, on chrome.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Nov 10, 2024
1 parent 50344dc commit 2f9fc73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/BuildsComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ export default function BuildsComponent() {
return r.json();
})
.then((j) => {
setBuilds(
j.sort((a: Build, b: Build) => {
return a.key < b.key;
}),
);
setBuilds(j.sort((a: Build, b: Build) => {
if (a.key < b.key) return 1;
if (a.key > b.key) return -1;
return 0;
}));
});
}, []);

Expand Down

0 comments on commit 2f9fc73

Please sign in to comment.