Fix registration table sorting