title: Method Illuminate\Support\Collection::orderBy does not exist
body: <p>I have a piece of code like this:</p>
  
  <pre><code>public function products()
  {
      $product = DB::table('products')-&gt;where('is_active', NULL)-&gt;get();
      if($price = request('entityprice')){
          $product-&gt;orderBy('entityprice', $price);
      }
      // $products = DB::table('products')-&gt;where('is_active', NULL)-&gt;find($id);
      // dd($product);
      return view('products', compact('product'));
  }
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>Method Illuminate\Support\Collection::orderBy does not exist.
  </code></pre>
  
  <p>I have front page </p>
  
  <pre><code> &lt;a href="?entityprice=desc"&gt;Sort by price descending&lt;/a&gt;
   &lt;a href="?entityprice=asc"&gt;Sort by price&lt;/a&gt;
  </code></pre>
  
  <p>Please help me)))</p>