Simplify comparison algorithm

This commit is contained in:
Ben Ramsey
2020-03-01 16:19:40 -06:00
parent 5ee7f7aaf2
commit bb78f0e598
+1 -1
View File
@@ -305,7 +305,7 @@ class Uuid implements UuidInterface
public function compareTo(UuidInterface $other): int
{
$compare = strcmp($this->getInteger()->toString(), $other->getInteger()->toString());
$compare = strcmp($this->toString(), $other->toString());
if ($compare < 0) {
return -1;