YUI version 2.5.1
This example illustrates how to facilitate a header row supporting both a click event to sort by column as well as a dblclick event to do some other behavior.