Comparator

Configurable Comparator similar to java.util.Comparator in Java 8

目前为 2019-10-03 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/390752/738038/Comparator.js

作者
Gerrit
版本
0.1.0
创建于
2019-10-03
更新于
2019-10-03
大小
4.4 KB
许可证
暂无

Sets up a "compare(a, b)" - function:
- With accessor-functions (e.g. to sort by properies)
- In ascending or descending order
- null and undefined first or last

Possible chaining of Comparators or Accessor-functions.