title: Cast in query builder laravel
body: <p>I want to <code>cast</code> orderBy in query builder laravel</p>
  
  <p>because my <code>price</code> is <code>varchar</code> type..<br></p>
  
  <p>so when it's sorting...the result is far from I want...</p>
  
  <p>my script like this</p>
  
  <pre><code>DB::table('test')-&gt;where(...)-&gt;orderBy('price')-&gt;get();
  </code></pre>
  
  <p>i already try something like this  </p>
  
  <pre><code>$query = CAST(price AS DECIMAL(10,2)) DESC;
  DB::table('test')-&gt;where(...)-&gt;orderBy($query)-&gt;get();
  </code></pre>
  
  <p>how can I cast OrderBy query builder so I can sort <code>price</code> desc</p>