diff --git a/server/app/common/lists/ListsSortTrait.php b/server/app/common/lists/ListsSortTrait.php index 34799f3a479841e9ad5bbdf980ce0c9b203ad832..e6d84c0d5878458677ea6b7e261e2f9d8f1031b6 100644 --- a/server/app/common/lists/ListsSortTrait.php +++ b/server/app/common/lists/ListsSortTrait.php @@ -42,10 +42,10 @@ trait ListsSortTrait return $defaultOrder; } - if ($this->orderBy = 'desc') { + if ($this->orderBy == 'desc') { return [$field => 'desc']; } - if ($this->orderBy = 'asc') { + if ($this->orderBy == 'asc') { return [$field => 'asc']; } return $defaultOrder;