@tanstack/table-core 8.9.1 → 8.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3359,7 +3359,11 @@ function getSortedRowModel() {
3359
3359
  const aUndefined = typeof aValue === 'undefined';
3360
3360
  const bUndefined = typeof bValue === 'undefined';
3361
3361
  if (aUndefined || bUndefined) {
3362
- return aUndefined && bUndefined ? 0 : aUndefined ? columnInfo.sortUndefined : -columnInfo.sortUndefined;
3362
+ let undefinedSort = aUndefined && bUndefined ? 0 : aUndefined ? columnInfo.sortUndefined : -columnInfo.sortUndefined;
3363
+ if (isDesc && undefinedSort !== 0) {
3364
+ undefinedSort *= -1;
3365
+ }
3366
+ return undefinedSort;
3363
3367
  }
3364
3368
  }
3365
3369