Tidy up sortable <th> creation

I have removed the newline and extra white space on line 205. It was causing formatting problems if the following css style was applied to the table header cell.
```css
white-space:pre;
```