Skip to content

Glossary: System Design Beyond the Basics in JavaScript

Comparator

A function passed to sort that says which of two items goes first. It returns a negative number, zero or a positive number.

Where the book teaches it

Related terms

Ranking