bug handling no tables there

Merged Olav Kvittem requested to merge sort-fix2 into master

Merge request reports