From f586f10895c58ea5feb7d961430f8cd2a923faa6 Mon Sep 17 00:00:00 2001 From: Jacob Wallraff Date: Mon, 18 Sep 2023 11:29:38 -0700 Subject: [PATCH] Update sortBy comment --- src/DataTable/useTable.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DataTable/useTable.ts b/src/DataTable/useTable.ts index 5b818520f11..c9a6b874cc1 100644 --- a/src/DataTable/useTable.ts +++ b/src/DataTable/useTable.ts @@ -116,7 +116,8 @@ export function useTable({ } /** - * Sort the rows of a table with the given column sort state + * Sort the rows of a table with the given column sort state. If the data in the table is sparse, + * blank values will be ordered last regardless of the sort direction. */ function sortRows(state: Exclude) { const header = headers.find(header => {