added a sort method to hand.java