I need helping sorting cards for poker
<p>c1 and c2 are from my card object, and p. stuff is from my player class. I am trying to swap the hand so that the cards are in order from least to greatest. Cards are dealt, they are just not in order. If you need me to put up my player class and card class I'll be more than happy to. Any help would be appreciated.</p>

<pre><code>public static void SortCards(Player p)
{
    Card c1 = null;
    Card c2 = null;

    int a = 0;
    int b = 0;
    int c = 0;
    int temp = 0;

    int card1 = 0;
    int card2 = 0;

    String p1;
    // pull out player
    // get card
    // set at positions

    // loop goes to the size of the hand
    for ( a = 0; a &lt; p.handSize(); a++)
    {
        c = a;
        b = a + 1;

        for (b = 0; b &lt; p.handSize(); b++)
        {
            c1 = p.Hand.get(b); 
            c2 = p.Hand.get(c); 

            card1 = c1.getValue(); 
            card2 = c2.getValue(); 


                if (card1 &lt; card2)
                {
                    c = b;
                }
            b = b + 1;  
        }
        p.Hand.setElementAt(c2, card1);
        p.Hand.setElementAt(c1, card2);
    }
}
</code></pre>
