src/Preference/Matched/MatchedPreferenceComparator.php
private function compareQualityFactor(PreferenceInterface $lValue, PreferenceInterface $rValue)
    {
        if ($rValue->getQualityFactor() < $lValue->getQualityFactor()) {
            return -1;
        } elseif ($rValue->getQualityFactor() > $lValue->getQualityFactor()) {
            return 1;
        } else {
            return 0;
        }
    }
private function compareQualityFactor(PreferenceInterface $lValue, PreferenceInterface $rValue)
    {
        if ($rValue->getQualityFactor() < $lValue->getQualityFactor()) {
            return -1;
        } elseif ($rValue->getQualityFactor() > $lValue->getQualityFactor()) {
            return 1;
        } else {
            return 0;
        }
    }
private function compareQualityFactor ( PreferenceInterface $ lValue , PreferenceInterface $ rValue ) { if ( $ rValue -> getQualityFactor ( ) < $ lValue -> getQualityFactor ( ) ) { return - 1 ; } elseif ( $ rValue -> getQualityFactor ( ) > $ lValue -> getQualityFactor ( ) ) { return 1 ; } else { return 0 ; } }
Compare quality factors of preferences.

@param PreferenceInterface $lValue
@param PreferenceInterface $rValue

@return int -1, 0, 1 (see usort() callback for meaning)
Compare quality factors of preferences .