Fecha de Varchar de Laravel Sortby
$items = DB::table("mytable")->where('userId','=',$userId)->orderByRaw("DATE_FORMAT('d-m-Y',startDate), ASC")->get();
Distinct Dog
$items = DB::table("mytable")->where('userId','=',$userId)->orderByRaw("DATE_FORMAT('d-m-Y',startDate), ASC")->get();
$sorted = $transaction->sortBy(function($col)
{
return $col;
})->values()->all();