@tanstack/react-table 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.
@@ -3393,7 +3393,11 @@
3393
3393
  const aUndefined = typeof aValue === 'undefined';
3394
3394
  const bUndefined = typeof bValue === 'undefined';
3395
3395
  if (aUndefined || bUndefined) {
3396
- return aUndefined && bUndefined ? 0 : aUndefined ? columnInfo.sortUndefined : -columnInfo.sortUndefined;
3396
+ let undefinedSort = aUndefined && bUndefined ? 0 : aUndefined ? columnInfo.sortUndefined : -columnInfo.sortUndefined;
3397
+ if (isDesc && undefinedSort !== 0) {
3398
+ undefinedSort *= -1;
3399
+ }
3400
+ return undefinedSort;
3397
3401
  }
3398
3402
  }
3399
3403