Skip to content

Commit

Permalink
SimpleTableManual sort on empty values incorrect on Firefox issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mashm committed Nov 15, 2024
1 parent 17f685f commit 6586873
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
};

function descendingComparator<T>(a: T, b: T, orderedBy: keyof T) {
if (!orderedBy || (!a[orderedBy] && !b[orderedBy])) {
return 0;
}
if (!b[orderedBy] || b[orderedBy] < a[orderedBy]) {
return -1;
}
Expand Down

0 comments on commit 6586873

Please sign in to comment.