Skip to content

Commit

Permalink
Update useSortBy docs (#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffdude committed Apr 22, 2022
1 parent 682ac0a commit 7440a5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/pages/docs/api/useSortBy.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ The following options are supported on any `Column` object passed to the `column
- `sortType: String | Function(rowA: <Row>, rowB: <Row>, columnId: String, desc: Bool)`
- Used to compare 2 rows of data and order them correctly.
- If a **function** is passed, it must be **memoized**. The sortType function should return 1 if rowA is larger, and -1 if rowB is larger. `react-table` will take care of the rest.
- String options: `string`, `number`, `basic`, `datetime`, `alphanumeric`. Defaults to `alphanumeric`.
- String options: `basic`, `datetime`, `alphanumeric`. Defaults to `alphanumeric`.
- The resolved function from the this string/function will be used to sort the this column's data.
- If a `string` is passed, the function with that name located on either the custom `sortTypes` option or the built-in sorting types object will be used.
- If a `function` is passed, it will be used.
- For more information on sort types, see Sorting

### Instance Properties

Expand Down

0 comments on commit 7440a5b

Please sign in to comment.