Reinstate missing sort handler