title: Laravel - Extend relationship with orderBy not working properly
body: <p>I have this code:</p>
  
  <pre><code>$query = $platform-&gt;challenges();
  // return response()-&gt;json($query);
  $challenges = $query-&gt;orderBy('start_date', 'DESC')-&gt;get();
  return response()-&gt;json($challenges);
  </code></pre>
  
  <p>As you can see, I get the challenges relationship query builder and I am trying to order the results by the date. If I uncomment second line I get 2 items array. But If I add the orderBy to the builder I only get 1 item array. </p>
  
  <p>Is there something I am missing?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Model code:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Models;
  
  use Illuminate\Database\Eloquent\Model;
  use GeneaLabs\LaravelModelCaching\Traits\Cachable;
  
  class Platform extends Model
  {
      use Cachable;
  
      protected $fillable = ['name', 'connection_key', 'code', 'enabled'];
  
      public function brands()
      {
          return $this-&gt;hasMany('App\Models\Brand');
      }
  
      public function challenges()
      {
          return $this-&gt;hasMany('App\Models\Challenge');
      }
  }
  </code></pre>
  
  <p>Maybe is the cachable trait making the bad behavior here?</p>