Skip to content

Commit

Permalink
Update readme with info on default sort
Browse files Browse the repository at this point in the history
  • Loading branch information
rbibby committed Jan 16, 2023
1 parent 6bcdc3a commit 706fb91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ of the column this may not be the desired functionality. You can change this usi
* `sort=priority:desc_nulls_first`


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

```php
$sieve->setDefaultSort('name', 'asc')
Expand Down

0 comments on commit 706fb91

Please sign in to comment.