Skip to content

Commit

Permalink
Fix sorting for last used column (#56)
Browse files Browse the repository at this point in the history
On first click sort by most recent first;
make sure that never is after the oldest
  • Loading branch information
krassowski authored Jun 15, 2024
1 parent 0f78596 commit a703085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function KernelTable(props: {
if (!b.lastUsed) {
return -1;
}
return a.lastUsed > b.lastUsed ? 1 : -1;
return a.lastUsed > b.lastUsed ? -1 : 1;
}
},
{
Expand Down

0 comments on commit a703085

Please sign in to comment.