Using the example below, is it possible to send the result of the callback function to the console, i.e. the value being returned?
rows.sort(function(a, b) {
if(a.sortKey < b.sortKey) return -sortDirection;
if(a.sortKey > b.sortKey) return sortDirection;
return 0;
});
What would I use as the argument: console.log(?)