LdapTools\Query\LdapResultSorter::compare PHP Method

compare() protected method

Taking into account case-sensitivity compare the 2 string values.
protected compare ( string $value1, string $value2 ) : integer
$value1 string
$value2 string
return integer
    protected function compare($value1, $value2)
    {
        if (!$this->caseSensitive) {
            $value1 = MBString::strtolower($value1);
            $value2 = MBString::strtolower($value2);
        }
        return MBString::compare($value1, $value2);
    }