sort tables for views add