There's no way for perl to perfectly satisfy here: sort subname LIST is clearly documented as using subname as the comparator in sorting LIST, and making the the optional whitespace before the '(' around a list become required would be unfortunate. But that leads to sort subname() not being interpreted as you intended. If you can train yourself to always use & on a sub call producing a list to be sorted, you'll be well off.
in reply to Re^3: Sorting result of function call
in thread Sorting result of function call