Match Sorter Utils
@tanstack/match-sorter-utils
A fork of match-sorter with separated filtering and sorting phases
Tables
react
table
match-sorter
utils
split
separate
datagrid
tanstack-intent
@tanstack/match-sorter-utils
Tables
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install @tanstack/match-sorter-utilsCode example
import { useMatchSorterUtils } from "@tanstack/match-sorter-utils";
const rows = [
{ id: 1, name: "Ada", role: "Engineer" },
{ id: 2, name: "Linus", role: "Maintainer" },
];
export function Example() {
const table = useMatchSorterUtils({ data: rows, columns: [{ accessorKey: "name" }, { accessorKey: "role" }] });
return <pre>{JSON.stringify(table, null, 2)}</pre>;
}Pros & cons
Pros
- Actively maintained by tannerlinsley
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub