sort probabilities