match-sorter
Simple, expected, and deterministic best-match sorting
...The core API accepts arrays of strings or objects and returns a filtered, ranked list, making it a natural fit for search boxes, autocomplete components, and table filtering. It supports a variety of advanced options, such as specifying which object keys to search, controlling the matching threshold, and customizing the base sorting logic. The library includes recipes and examples that show how to handle different naming conventions like PascalCase, camelCase, snake_case, and kebab-case by normalizing separators. It also offers control over diacritics handling, allowing you to strip or keep accents depending on the UX you want. ...