in reply to Unexpected difference in whitespace parsing in subroutine calls.

This is caused by sort. Take a look at the documented calling forms:

sort SUBNAME LIST sort BLOCK LIST sort LIST

The extra whitespace is triggering the SUBNAME LIST behavior.