We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 998f158 commit 3a2b505Copy full SHA for 3a2b505
src/Database/Query/FMBaseBuilder.php
@@ -340,6 +340,12 @@ public function recordId($recordId)
340
341
public function orderBy($column, $direction = self::ASCEND): FMBaseBuilder
342
{
343
+ $direction = match($direction) {
344
+ self::ASCEND, 'asc' => self::ASCEND,
345
+ self::DESCEND, 'desc' => self::DESCEND,
346
+ default => $direction
347
+ };
348
+
349
$this->appendSortOrder($column, $direction);
350
351
return $this;
0 commit comments