Skip to content

Commit 538c06d

Browse files
authored
1 parent ff9f1f8 commit 538c06d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/features/sorting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following sorting functions are built-in to the table core:
3737
- `datetime`
3838
- Sorts by time, use this if your values are `Date` objects.
3939
- `basic`
40-
- Sorts using a basic/standard `a > b ? -1 : b < a ? 1 : 0` comparison. This is the fastest sorting function, but may not be the most accurate.
40+
- 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.
4141
4242
Every sorting function receives 2 rows and a column ID and are expected to compare the two rows using the column ID to return `-1`, `0`, or `1` in ascending order. Here's a cheat sheet:
4343

0 commit comments

Comments
 (0)