Working on table sorting