$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();