title: Sort arraylist in specific order
body: <p>I have an arraylist like below:</p>
  
  <pre><code>ArrayList&lt;PhoneNumber&gt; arrayListToSort 
  </code></pre>
  
  <p>PhoneNumber have following properties</p>
  
  <p><code>private String number;</code></p>
  
  <p><code>private String numberType;</code></p>
  
  <p>Number type is like <strong>MOBILE , HOME , OFFICE</strong></p>
  
  <p>I want to sort <code>arrayListToSort</code> by <code>numberType</code> of each. </p>
  
  <p>I can do this with simple alphebetical order. </p>
  
  <p>But my problem is how to sort the list by follwing order.</p>
  
  <ol>
  <li>MOBILE</li>
  <li>HOME</li>
  <li>OFFICE</li>
  </ol>