текст короткий в Ларавеле
Model::orderBy(DB::raw('LENGTH(column_name), column_name'));
Noob Learner
Model::orderBy(DB::raw('LENGTH(column_name), column_name'));