A single function is fine, but of course it needs arguments describing which column and whether ascending or descending. Also, the pair being compared needs to be specified by the child indices rather than the actual text contents of the cells. This for most flexibility.
-Mike
Update: Support for header toolTips would be nice also.