Add helper function to add span on sorted column