Adding fix for empty th values by not running the sort