Merge pull request #28 from gabi2/master

improve table sorting, partial fix bnc #885278