I have an array that looks like this:
const arr = [ [500, \'Foo\'], [600, \'bar\'], [700, \'Baz\'], ];
I would like to sort this
Array.prototype.sort takes a function which will be applied to each pair of items in the array. The return of that function determines how the items are sorted (it needs to return a positive number, 0, or a negative number).