public function handleQuestionOrder(Question $question): void 	{ 		$ordering = 0;  		switch ($question->class) { 			case QuestionClass::Basic: 			case QuestionClass::PpiBasic: 			case QuestionClass::PpiPrize: 				$ordering = isset($question->category->survey) ? $question->category->survey->questions()->max('questions.ordering') : 0;  				break;  			case QuestionClass::Additional: 			case QuestionClass::PpiBrandAwareness: 				$ordering = isset($question->clientSurvey) ? $question->clientSurvey->extraQuestions()->max('questions.ordering') : 0;  				break;  			case QuestionClass::Demographic: 				$ordering = Question::demographicQuestions()->max('ordering') ?? 0;  				break;  			case QuestionClass::PpiDemographic: 				$ordering = Question::demographicQuestionsPpi()->max('ordering') ?? 0;  				break; 		}  		$question->update([ 			'ordering' => ++$ordering, 		]); 	}