src/Preference/Matched/MatchedPreferenceSort.php
public function sortAscending(array $prefList)
    {
        $comparator = new MatchedPreferenceComparator();

        usort(
            $prefList,
            function (MatchedPreferenceInterface $lValue, MatchedPreferenceInterface $rValue) use ($comparator) {
                return -1 * $comparator->compare($lValue, $rValue);
            }
        );

        return $prefList;
    }
public function sortAscending(array $prefList)
    {
        $comparator = new MatchedPreferenceComparator();

        usort(
            $prefList,
            function (MatchedPreferenceInterface $lValue, MatchedPreferenceInterface $rValue) use ($comparator) {
                return -1 * $comparator->compare($lValue, $rValue);
            }
        );

        return $prefList;
    }
public function sortAscending ( array $ prefList ) { $ comparator = new MatchedPreferenceComparator ( ) ; usort ( $ prefList , function ( MatchedPreferenceInterface $ lValue , MatchedPreferenceInterface $ rValue ) use ( $ comparator ) { return - 1 * $ comparator -> compare ( $ lValue , $ rValue ) ; } ) ; return $ prefList ; }
Sort the array of MatchedPreference instances in ascending order.

@param MatchedPreferenceInterface[] $prefList

@return MatchedPreferenceInterface[]
Sort the array of MatchedPreference instances in ascending order .