add table sorting interface