Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 3bd2ca9

Browse files
committed
fix sorting
1 parent 9dcb741 commit 3bd2ca9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/Table.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
getPaginationRowModel,
88
ColumnDef,
99
ColumnOrderState,
10-
flexRender,
1110
Table,
1211
Header,
1312
HeaderGroup,
@@ -42,7 +41,7 @@ import { AddRow } from "components/AddRow";
4241
import {
4342
obsidianMdLinksOnClickCallback,
4443
obsidianMdLinksOnMouseOverMenuCallback,
45-
} from "./obsidianArq/markdownLinks";
44+
} from "components/obsidianArq/markdownLinks";
4645
import HeaderContextMenuWrapper from "./contextMenu/HeaderContextMenuWrapper";
4746

4847
const defaultColumn: Partial<ColumnDef<RowDataType>> = {

src/components/reducers/CustomSortingFn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const dbfolderColumnSortingFn: (
2525
const cellB = rowB.getValue<Literal>(columnId);
2626

2727
// If both are numbers, compare as numbers
28-
if (!Number.isNaN(cellA) && !Number.isNaN(cellB)) {
28+
if (!Number.isNaN(Number(cellA)) && !Number.isNaN(Number(cellB))) {
2929
return Number(cellA) - Number(cellB);
3030
}
3131

0 commit comments

Comments
 (0)