Skip to content

Commit

Permalink
Update sortBy comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thyeggman committed Sep 18, 2023
1 parent 1e2af28 commit f586f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DataTable/useTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export function useTable<Data extends UniqueRow>({
}

/**
* 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<ColumnSortState, null>) {
const header = headers.find(header => {
Expand Down

0 comments on commit f586f10

Please sign in to comment.