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 df318b2 commit 2a2853bCopy full SHA for 2a2853b
components/finder.rst
@@ -192,6 +192,13 @@ You can also define your own sorting algorithm with ``sort()`` method::
192
return strcmp($a->getRealPath(), $b->getRealPath());
193
});
194
195
+You can reverse any sorting by using the ``reverseSorting()`` method::
196
+
197
+ $finder->sortByName()->reverseSorting();
198
199
+.. versionadded:: 4.2
200
+ The ``reverseSorting()`` method to reverse the sort order was introduced in Symfony 4.2.
201
202
.. note::
203
204
Notice that the ``sort*`` methods need to get all matching elements to do
0 commit comments