Borkn sorting.
Fix problem stopping table from appearing.
Sorting works, clicking doesnt.
Added logging to help find error.
Working sort code.
Merge pull request #1 from maxdh/feature/unfix-sort

Feature/unfix sort