Make compute_weight call sort_hand