cmp() public method

Given two revisions, this figures out which one is greater than the the other.
public cmp ( string $rev1, string $rev2 ) : integer
$rev1 string Revision string.
$rev2 string Second revision string.
return integer 1 if the first is greater, -1 if the second if greater, and 0 if they are equal
Exemplo n.º 1
0
 /**
  * Sort function for ascending revision.
  */
 public function _fileRevSort($a, $b)
 {
     return $this->_rep->cmp($a->getRevision(), $b->getRevision());
 }