Greasy Fork is available in English.

Comparator

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

As of 03/10/2019. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/390752/738040/Comparator.js

Autor
Gerrit
Verzija
0.1.0
Napravljeno
03/10/2019
Ažurirano
03/10/2019
Licenca
Nije dostupno

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.