TiloBox
Back to directory
match-sorter project preview

match-sorter

Simple, expected, and deterministic best-match array sorting and filtering for JavaScript.

LicenseMIT
GitHub stars4.5k
Last commit6 days ago
Tags5 topics
Match Sorter LibArray Filtering RankingAutocomplete SorterDeveloper ToolsDeterministic Fuzzy Sort
Overview

Why consider match-sorter?

match-sorter is an open-source array filtering and fuzzy matching utility written in JavaScript and TypeScript by Kent C. Dodds. match-sorter ranks array items based on similarity rankings (exact, startsWith, wordStartsWith, contains, acronym), producing intuitive search completions.

Guided learning

Learn match-sorter by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 2 sections
In this guide2 sections

Overview of match-sorter

match-sorter filters autocomplete dropdown items with ranked relevance matching.

Quickstart

bash
1npm install match-sorter
javascript
1import { matchSorter } from 'match-sorter';
2const results = matchSorter(['Invoice', 'Inventory', 'Insurance'], 'inv');

match-sorter is licensed under the permissive MIT License.

Related tools

More options with a similar category or technology profile.

match-sorter FAQs

match-sorter is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

match-sorter is listed under the MIT license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

match-sorter is listed as an alternative to Downshift. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.