Ejemplo n.º 1
0
 /**
  * Compares two versions with each other using the internal comparator, and returns the opposite result.
  *
  * @param DeltaInterface $version1
  * @param DeltaInterface $version2
  *
  * @return int
  */
 public function compare(DeltaInterface $version1, DeltaInterface $version2)
 {
     return $this->internalComparator->compare($version1, $version2) * -1;
 }
Ejemplo n.º 2
0
 /**
  * Returns a collection with elements sorted in reverse order.
  *
  * @return static
  */
 public function getReverse()
 {
     return $this->sort($this->comparator->getReverse());
 }