# sortFn_datetime

# Variable: sortFn\_datetime

```ts
const sortFn_datetime: SortFn<any, any>;
```

Defined in: [fns/sortFns.ts:99](https://github.com/TanStack/table/blob/main/packages/table-core/src/fns/sortFns.ts#L99)

Sorts rows with the built-in datetime strategy.

This comparator returns ascending-order results; descending order is applied by the sorting row model.
