title: Sorting a deck of cards by suit and then rank
body: <p>I have this Java class:</p>
  
  <pre><code>class Card
  {
      private Suit suit;
      private int  rank;
  }
  </code></pre>
  
  <p>(<code>Suit</code> is an enum)</p>
  
  <p>There are four suits with ranks 1-9 each and four suits with a single possible rank 0. Each card exists in an unknown but constant among all cards number of copies. How would I sort a deck in a set order of suits, and by increasing rank in each suit? </p>