code: public SortedClassProbability[] sortByDescendingClassProbability(BinomialModelPrediction p) {
      String[] domainValues = m.getDomainValues(m.getResponseIdx());
      double[] classProbabilities = p.classProbabilities;
      return sortByDescendingClassProbability(domainValues, classProbabilities);
    }
docs: A helper function to return an array of binomial class probabilities for a prediction in sorted order.
  The returned array has the most probable class in position 0.
  
  @param p The prediction.
  @return An array with sorted class probabilities.