@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.
- package/build/lib/index.esm.js +5 -1
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.mjs +5 -1
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/utils/getSortedRowModel.js +5 -1
- package/build/lib/utils/getSortedRowModel.js.map +1 -1
- package/build/umd/index.development.js +5 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/getSortedRowModel.ts +12 -5
package/build/lib/index.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
|