mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Simplify comparison algorithm
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user