@tanstack/vue-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.
@@ -9,5 +9,5 @@ export declare const FlexRender: import("vue").DefineComponent<Readonly<{
9
9
  }>>>, {
10
10
  readonly props?: any;
11
11
  readonly render?: any;
12
- }>;
12
+ }, {}>;
13
13
  export declare function useVueTable<TData extends RowData>(options: TableOptions<TData>): import("@tanstack/table-core").Table<TData>;
@@ -3373,7 +3373,11 @@
3373
3373
  const aUndefined = typeof aValue === 'undefined';
3374
3374
  const bUndefined = typeof bValue === 'undefined';
3375
3375
  if (aUndefined || bUndefined) {
3376
- return aUndefined && bUndefined ? 0 : aUndefined ? columnInfo.sortUndefined : -columnInfo.sortUndefined;
3376
+ let undefinedSort = aUndefined && bUndefined ? 0 : aUndefined ? columnInfo.sortUndefined : -columnInfo.sortUndefined;
3377
+ if (isDesc && undefinedSort !== 0) {
3378
+ undefinedSort *= -1;
3379
+ }
3380
+ return undefinedSort;
3377
3381
  }
3378
3382
  }
3379
3383