You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/default-order.md
+5-29Lines changed: 5 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# Override Default Order
2
2
3
-
API Platform Core provides an easy way to override default order in your collection.
3
+
API Platform Core provides an easy way to override the default order of items in your collection.
4
4
5
-
By default, it will order by resource identifier(s) using ASC direction. If you want to customize this order, you must add an `order` attribute on your ApiResource annotation:
5
+
By default, items in the collection are ordered in ascending (ASC) order by their resource identifier(s). If you want to
6
+
customize this order, you must add an `order` attribute on your ApiResource annotation:
6
7
7
8
```php
8
9
<?php
@@ -58,31 +59,6 @@ class Book
58
59
}
59
60
```
60
61
61
-
It's also possible to configure the default filter on an association property:
0 commit comments