I have problems ordering the query from highest to lowest by the date "created_at" it does not throw error and if it shows me the data of the query but only it does not order them you are the code
$listado = DB::table('lotes')->join('producciondiarias', function ($join)use($user_id){
$join->on('lotes.id','=','producciondiarias.lote_id')
->where('lotes.user_id','=',$user_id)
->orderBy('producciondiarias.created_at','desc');
})->get();