src/LdapTools/Utilities/MBString.php
public static function compare($value1, $value2)
    {
        if (self::isIntlLoaded()) {
            return self::getCollator()->compare($value1, $value2);
        }
        
        return strnatcmp($value1, $value2);
    }
public static function compare($value1, $value2)
    {
        if (self::isIntlLoaded()) {
            return self::getCollator()->compare($value1, $value2);
        }
        
        return strnatcmp($value1, $value2);
    }
public static function compare ( $ value1 , $ value2 ) { if ( self :: isIntlLoaded ( ) ) { return self :: getCollator ( ) -> compare ( $ value1 , $ value2 ) ; } return strnatcmp ( $ value1 , $ value2 ) ; }
Performs a comparison between two values and returns an integer result, like strnatcmp.

@param string $value1
@param string $value2
@return int
Performs a comparison between two values and returns an integer result like strnatcmp .