yii2 ActiveRecord Find OrderBy with calculation
<p>Trying to fetch a description from my database.
The query returns the result but I would like to order the result to only show the one with the highest vote.</p>

<p>The vote should be calculated by the <code>upvoted</code> column subtracted by the <code>downvoted</code> column</p>

<pre><code>$description = UnitDescription::find()
   -&gt;where(['id_unit' =&gt; $model-&gt;id])
   -&gt;orderBy([
      'upvoted - downvoted' =&gt; SORT_DESC //Need this line to be fixed
   ])
   -&gt;one();
</code></pre>

<p>I was hoping someone might have a way to write this part of the query - Thanks</p>