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 e9df6e1 commit 754420dCopy full SHA for 754420d
src/Database/Query/FMBaseBuilder.php
@@ -340,9 +340,10 @@ 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,
+ // check for specific direction values sent by some Laravel functions and convert them to FileMaker's values
+ $direction = match ($direction) {
+ 'asc' => self::ASCEND,
346
+ 'desc' => self::DESCEND,
347
default => $direction
348
};
349
0 commit comments