added table handling to veneer-sort