added ability to sort table columns, fixes #7