diff --git a/app/Entity/ModelEntities/SBMLModel.php b/app/Entity/ModelEntities/SBMLModel.php index 7cebe87..64662fd 100644 --- a/app/Entity/ModelEntities/SBMLModel.php +++ b/app/Entity/ModelEntities/SBMLModel.php @@ -240,9 +240,6 @@ private function getDatasetSubstitution(string $varAlias) { foreach ($this->withDataset as $var) { if ($var['alias'] === $varAlias) { -// if ($varAlias === 'R0') { -// dump($var);exit; -// } return $var; } } diff --git a/app/Repositories/BioquantityRepositories/BioquantityRepository.php b/app/Repositories/BioquantityRepositories/BioquantityRepository.php index 08063fd..3139331 100644 --- a/app/Repositories/BioquantityRepositories/BioquantityRepository.php +++ b/app/Repositories/BioquantityRepositories/BioquantityRepository.php @@ -72,7 +72,7 @@ public function getList(array $filter, array $sort, array $limit): array public function sortByOrganismName (Traversable $iterator, string $how){ $iterator->uasort(function (Bioquantity $a, Bioquantity $b) use ($how) { - if ($how === 'asc') { + if ($how === 'ASC') { return $a->getOrganism()->getName() <=> $b->getOrganism()->getName(); } else { return $b->getOrganism()->getName() <=> $a->getOrganism()->getName();