Tweaked columnFun to enhance adaptability

Specifically, I wanted the heartbeat column to be sorted as a datetime
rather than as a string, but this change allows any column to have a
specialized TableWidgetItem instead of being stuck in string mode.