I definitively agree.
The event TRIGGER is an “User click”, the ACTION is “Call a sorting column method”, so it must be considered a BUG, as the TRIGGER occurs but the method is not called and should be. The contents to be sorted or whatever are not important at this stage. If empty, the internal sorting method should just return as if it did its job.