Sort log

Run Settings
LanguageJavaScript
Language Version
Run Command
var i = 1; function sortNumber(a,b){ console.log("No." + i); console.log("a:" + a + " b:" + b); console.log("a:" + a); console.log("b:" + b); console.log("a-b:" + (a-b)); console.log(""); i++; return a-b; } var numbers = [1, 3, 2, 4]; console.log(numbers.sort(sortNumber));
Editor Settings
Theme
Key bindings
Full width
Lines