Comparator
typealias Comparator = (@R|kotlin/ParameterName|(name = String(a)) ERROR CLASS: Symbol not found for JsAny, @R|kotlin/ParameterName|(name = String(b)) ERROR CLASS: Symbol not found for JsAny) -> Double(source)
A function used to compare two items while sorting a queue.
function compareNumbers(a, b) {
return a - b;
}
Content copied to clipboard
Parameters
a
An item in the array.
b
An item in the array.