title: How to Sort Nova Metrics Results?
body: <pre><code>class PartViews extends Partition
  {
      /**
       * Calculate the value of the metric.
       *
       * @param  \Laravel\Nova\Http\Requests\NovaRequest  $request
       * @return mixed
       */
      public function calculate(NovaRequest $request)
      {
          return $this-&gt;sum($request, Record::class,'views', 'platform');
      }
      ...
  
  }
  </code></pre>
  
  <p>In my Metrics, i Use sum to calculate items count, but due to i have more than one platform, my sum result has many.</p>
  
  <p>But the Sum Result is Alphabetical, How can i make it ordered by sum</p>
  
  <p>for example, default is sorted by alphabetical, I want to sorted it by sum result, and tell me which is the best choice.</p>
  
  <p>So, What should i do ?</p>