Skip to content

Commit

Permalink
docs: fix wrong description in sorting.md (#5134)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychenjiajun committed Dec 17, 2023
1 parent ff9f1f8 commit 538c06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/features/sorting.md
Expand Up @@ -37,7 +37,7 @@ The following sorting functions are built-in to the table core:
- `datetime`
- Sorts by time, use this if your values are `Date` objects.
- `basic`
- 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.
- 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.
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:
Expand Down

0 comments on commit 538c06d

Please sign in to comment.