sort() modifies the array in place, so no need to assign to a local variable. It also seems clearer to not assign the result to a local variable, to highlight that the array has been modified in place. That should also result in a smaller diff.