title: How to use orderBy() with model's method in Laravel
body: <p>How can I use orderBy to order by a model's method?</p>
  
  <p>Consider the model User and the method</p>
  
  <pre><code>public function fullName() {
      return $this-&gt;firstName . $this-&gt;lastName;
  }
  </code></pre>
  
  <p>I want to do something like orderBy('fullName'). Is this possible? I know I can make equivalent code using Query Builder, but I want to keep my Model methods as they are.</p>