src/Evaluators/HandEvaluator.php
/**
    * Sort the value histogram by value rank highest to lowest instead of count
    * This is needed for straights
    * 
    * @return void
    */
Sort the value histogram by value rank highest to lowest instead of count
This is needed for straights

@return void
Sort the value histogram by value rank highest to lowest instead of count This is needed for straights @return void
protected function sortValueHistogramAccordingToValue(): Void
    {
        $sortedHistogram = $this->valueHistogram;
        if (array_key_exists(14, $sortedHistogram)) {
            $sortedHistogram[$this->lowAceValue] = $sortedHistogram[14];
        }
        krsort($sortedHistogram, SORT_NUMERIC);
        $this->sortedValues = $sortedHistogram;
    }
protected function sortValueHistogramAccordingToValue ( ) : Void { $ sortedHistogram = $ this -> valueHistogram ; if ( array_key_exists ( 14 , $ sortedHistogram ) ) { $ sortedHistogram [ $ this -> lowAceValue ] = $ sortedHistogram [ 14 ] ; } krsort ( $ sortedHistogram , SORT_NUMERIC ) ; $ this -> sortedValues = $ sortedHistogram ; }
Sort the value histogram by value rank highest to lowest instead of count
 This is needed for straights
Sort the value histogram by value rank highest to lowest instead of count This is needed for straights
// Copy aces and convert rank for low straight.