match-sorter
Simple, expected, and deterministic best-match sorting
...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. Distributed via npm and usable in both Node and browser environments.