You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/sorting.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,11 +145,11 @@ By default, there are 6 built-in sorting functions to choose from:
145
145
-`datetime` - Sorts by time, use this if your values are `Date` objects.
146
146
-`basic` - Sorts using a basic/standard `a > b ? 1 : a < b ? -1 : 0` comparison. This is the fastest sorting function, but may not be the most accurate.
147
147
148
-
You can also define your own custom sorting functions either as the `sortingFn` column option, or as a global sorting function using the `sortingFns` table option.
148
+
You can also define your own custom sorting functions either as the `sortingFn` column option, or as a global sorting function using the `sortFns` table option.
149
149
150
150
#### Custom Sorting Functions
151
151
152
-
When defining a custom sorting function in either the `sortingFns` table option or as a `sortingFn` column option, it should have the following signature:
152
+
When defining a custom sorting function in either the `sortFns` table option or as a `sortingFn` column option, it should have the following signature:
153
153
154
154
```tsx
155
155
//optionally use the SortingFn to infer the parameter types
0 commit comments