Move sort_parameters() to CallableReflection