Make tables sortable, fixes #5