Addition of hover titles to display current sort order or potential sort order

I've been using this custom code for a while and thought it might be useful to feed back - it basically just adds some simple onHover titles to indicate the current sort order or what the potential sort order could be.