Skip to content

Commit 706fb91

Browse files
committed
Update readme with info on default sort
1 parent 6bcdc3a commit 706fb91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ of the column this may not be the desired functionality. You can change this usi
103103
* `sort=priority:desc_nulls_first`
104104

105105

106-
You can set a default sort using the `setDefaultSort` on the`Sieve` class.
106+
You can set a default sort using the `setDefaultSort` on the`Sieve` class. The default sort uses the database column
107+
name rather than the mapped property name, meaning you can use the default sort property without having a map set up.
107108

108109
```php
109110
$sieve->setDefaultSort('name', 'asc')

0 commit comments

Comments
 (0)