We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a3a32 commit def3abdCopy full SHA for def3abd
1 file changed
packages/table-core/src/utils/getSortedRowModel.ts
@@ -61,8 +61,8 @@ export function getSortedRowModel<TData extends RowData>(): (
61
const aValue = rowA.getValue(sortEntry.id)
62
const bValue = rowB.getValue(sortEntry.id)
63
64
- const aUndefined = aValue === undefined
65
- const bUndefined = bValue === undefined
+ const aUndefined = aValue == null // true for null or undefined
+ const bUndefined = bValue == null // true for null or undefined
66
67
if (aUndefined || bUndefined) {
68
if (sortUndefined === 'first') return aUndefined ? -1 : 1
0 commit comments