initial table sorting