Tidy up sortable <th> creation

I have removed the newline and extra white space on line 205. It was causing formatting problems if the css style white-space:pre; was applied to the <th>.