Tablesort: Fixes initial sort order and horizontal alignment

some minor fixes for pull request #1