Comparator

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

目前為 2019-10-04 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/390752/738263/Comparator.js

作者
Gerrit
版本
0.3
建立日期
2019-10-03
更新日期
2019-10-04
尺寸
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.