From 140ca060862cd4a93fe7fb34345b860de0e2f211 Mon Sep 17 00:00:00 2001 From: gargroh <42495927+gargroh@users.noreply.github.com> Date: Sat, 11 Jan 2020 01:26:41 +0530 Subject: [PATCH] Doc for https://github.com/tannerlinsley/react-table/pull/1615 (#1843) --- docs/api/useSortBy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/useSortBy.md b/docs/api/useSortBy.md index 679d2e8..6fecac7 100644 --- a/docs/api/useSortBy.md +++ b/docs/api/useSortBy.md @@ -72,7 +72,7 @@ The following options are supported on any `Column` object passed to the `column - Defaults to `false` - If set to `true`, the underlying sorting direction will be inverted, but the UI will not. - This may be useful in situations where positive and negative connotation is inverted, eg. a Golfing score where a lower score is considered more positive than a higher one. -- `sortType: String | Function` +- `sortType: String | Function(rowA: , rowB: , columnID: String, desc: Bool)` - Used to compare 2 rows of data and order them correctly. - If a **function** is passed, it must be **memoized** - String options: `basic`, `datetime`, `alphanumeric`. Defaults to `alphanumeric`.