Extended data structure with branch field

This commit is contained in:
Steffen Lange 2020-03-30 01:42:46 +02:00
parent f0c7c5fae0
commit 2a83cbf9c1
3 changed files with 10 additions and 4 deletions

View file

@ -62,7 +62,7 @@ class Database {
array_push($this->data, $patch);
}
private function cmp(PatchObject $a, PatchObject $b) : int {
return strcasecmp($a->getProduct(), $b->getProduct());
return strcasecmp($a->getProduct() . $a->getBranch(), $b->getProduct() . $b->getBranch());
}
}