<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@datashaper/react](./react.md) &gt; [useSortHandling](./react.usesorthandling.md)

## useSortHandling() function

<b>Signature:</b>

```typescript
export declare function useSortHandling(allowSorting: boolean, defaultSortColumn?: string, defaultSortDirection?: SortDirection): SortParameters;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  allowSorting | boolean |  |
|  defaultSortColumn | string | <i>(Optional)</i> |
|  defaultSortDirection | SortDirection | <i>(Optional)</i> |

<b>Returns:</b>

[SortParameters](./react.sortparameters.md)

