title: Laravel ordering results by specific values
body: <p>I have this line of code which gets results from a database:</p>
  
  <pre><code>'clanMembers' =&gt; User::find(Auth::user() -&gt; clan_id) -&gt; where('clan_id', '=', Auth::user() -&gt; clan_id) -&gt; orderBy('username') -&gt; get()
  </code></pre>
  
  <p>Currently it orders by the username. I wish to change this to order by the clan_rank field. This clan_rank field will only ever contain 3 different values. These are:</p>
  
  <pre><code>1. Owner
  2. Admin
  3. Member
  </code></pre>
  
  <p>I wish to have my results ordered with Owners first, then Admin, then members. How can I change my line of code to achieve these results? </p>