Skip to content

Commit 16d16dd

Browse files
authoredMar 8, 2024··
Update sorting.md
1 parent ab0c5e0 commit 16d16dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎docs/guide/sorting.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ const [sorting, setSorting] = useState<SortingState>([])
103103
const table = useReactTable({
104104
columns,
105105
data,
106-
// getCoreRowModel: getCoreRowModel(), //not needed for manual sorting
106+
getCoreRowModel: getCoreRowModel(),
107+
//getSortedRowModel: getSortedRowModel(), //not needed for manual sorting
107108
manualSorting: true, //use pre-sorted row model instead of sorted row model
108109
state: {
109110
sorting,
@@ -405,4 +406,4 @@ There are a lot of sorting related APIs that you can use to hook up to your UI o
405406
- `column.getSortingFn` - Returns the exact sorting function being used for a column.
406407

407408
- `column.getCanMultiSort` - Useful for enabling/disabling the multi-sorting UI for a column.
408-
- `column.getSortIndex` - Useful for showing a badge or indicator of the column's sort order in a multi-sort scenario. i.e. whether or not it is the first, second, third, etc. column to be sorted.
409+
- `column.getSortIndex` - Useful for showing a badge or indicator of the column's sort order in a multi-sort scenario. i.e. whether or not it is the first, second, third, etc. column to be sorted.

0 commit comments

Comments
 (0)
Please sign in to comment.