diff --git a/core/default-order.md b/core/default-order.md new file mode 100644 index 00000000000..db533cc8a6a --- /dev/null +++ b/core/default-order.md @@ -0,0 +1,64 @@ +# Overriding Default Order + +API Platform Core provides an easy way to override the default order of items in your collection. + +By default, items in the collection are ordered in ascending (ASC) order by their resource identifier(s). If you want to +customize this order, you must add an `order` attribute on your ApiResource annotation: + +```php +