src/wcmf/lib/model/NodeSortkeyComparator.php
public function compare(Node $a, Node $b) {
    $valA = $this->getSortkeyValue($a);
    $valB = $this->getSortkeyValue($b);
    if ($valA == $valB) { return 0; }
    return ($valA > $valB) ? 1 : -1;
  }
public function compare(Node $a, Node $b) {
    $valA = $this->getSortkeyValue($a);
    $valB = $this->getSortkeyValue($b);
    if ($valA == $valB) { return 0; }
    return ($valA > $valB) ? 1 : -1;
  }
public function compare ( Node $ a , Node $ b ) { $ valA = $ this -> getSortkeyValue ( $ a ) ; $ valB = $ this -> getSortkeyValue ( $ b ) ; if ( $ valA == $ valB ) { return 0 ; } return ( $ valA > $ valB ) ? 1 : - 1 ; }
Compare function for sorting Nodes in the given relation
@param $a First Node instance
@param $b First Node instance
@return -1, 0 or 1 whether a is less, equal or greater than b
in respect of the criteria
Compare function for sorting Nodes in the given relation