Exemple #1
0
 /**
  * Compares two projects by owner
  *
  * @param GitPHP_Project $a first project
  * @param GitPHP_Project $b second project
  * @return integer comparison result
  */
 public static function CompareOwner($a, $b)
 {
     $catCmp = strcmp($a->GetCategory(), $b->GetCategory());
     if ($catCmp !== 0) {
         return $catCmp;
     }
     return strcmp($a->GetOwner(), $b->GetOwner());
 }