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.
Glossary: System Design Beyond the Basics in JavaScript
A function passed to sort that says which of two items goes first. It returns a negative number, zero or a positive number.