$ArrQuest = Question::with('user', 'file', 'answer')->orderBy('id','desc')->paginate(15);
$Question = new Question;
$ArrQuest = Question::with('user', 'file', 'answer');
$Relation = $Question-> answer();
$Table = $Question->getRelated()->getTable();
$ArrQuest = $ArrQuest->join($Table, $Relation->getQualifiedForeignKey(), '=', $Relation->getQualifiedOtherKeyName())->orderBy(DB::raw("count(`{$Table}`.`id`)"), 'asc')->paginate(15);