fixed DN sorting

This commit is contained in:
Roland Gruber 2013-03-12 20:05:41 +00:00
parent b8636a415d
commit 2a3a0fd1a0
1 changed files with 3 additions and 2 deletions

View File

@ -786,8 +786,9 @@ function compareDN($a, $b) {
else return 0; // DNs are identical
}
}
elseif ($part_a == max($part_a, $part_b)) return 1;
else return -1;
else {
return strnatcasecmp($part_a, $part_b);
}
}
return -1;
}