1 个仓库
Allows extending sorting logic via user-supplied comparison functions.
Distinct from Custom Comparison Logic: Distinct from Custom Comparison Logic: focuses on the mechanism of injecting external functions for sorting rather than state-change detection logic.
Explore 1 awesome GitHub repository matching software engineering & architecture · Comparison Function Injection. Refine with filters or upvote what's useful.
match-sorter 是一个 JavaScript 字符串匹配和数组过滤实用程序,旨在根据搜索字符串的相关性对列表进行排名和排序。它作为一个确定性的最佳匹配排序库和模糊搜索引擎,用于过滤对象数组。 该工具使用加权匹配启发式算法对结果进行优先级排序,偏好精确匹配、首字母缩写和字符串包含。它采用确定性排名系统以确保一致的排序,并支持不区分变音符号的归一化,以匹配字符而不受重音影响。 该库涵盖了通过键路径属性提取的匹配标准规范、用于调整搜索严格性的匹配阈值配置,以及排名元数据的提取。它还通过外部比较函数提供可自定义的排序逻辑,以覆盖默认的平局决胜规则。
Provides the ability to override default sorting results using external comparison functions.