title: ORDER BY "the date" Laravel 5 SQL Query
body: <p>I want to sort the results by the date, but this Laravel 5 SQL Query is not working as i want.</p>
  
  <pre><code>$b = DB::table('entry')
                          -&gt;select(DB::raw("DATE_FORMAT(created_at,'%d-%m-%Y') as tanggal"))
                          -&gt;groupBy(DB::raw("DATE_FORMAT(created_at,'%d-%m-%Y')"))
                          -&gt;orderBy(DB::raw("DATE_FORMAT(created_at,'%d-%m-%Y')"), 'asc')
                          -&gt;get();
  </code></pre>