Laravel-MongoDB, how order result by relevant
<p>I use jenssegers/laravel-mongodb. I make scope</p>

<pre><code>public function scopeWhereFullText($query, $search)
    {
        return $query-&gt;whereRaw(['$text' =&gt; ['$search' =&gt; $search]],['score'=&gt;['$meta'=&gt;'textScore']]);
    }
</code></pre>

<p>How I can order By score field like in MongoDB js example:</p>

<pre><code>db.products.find({$text:{$search:"SomeText"}},{score:{$meta:'textScore'}}).sort({score:{$meta:'textScore'}})
</code></pre>