The sort method takes a callback function as an argument. It uses the value returned from this function to decide the order in which to sort the values. If the callback result is negative, a is sorted ...