10000 Add undocumented sortByAccessedTime, sortByChangedTime and sortByModi… · symfony/symfony-docs@8cb53ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cb53ca

Browse files
committed
Add undocumented sortByAccessedTime, sortByChangedTime and sortByModifiedTime methods in finder component
1 parent e13ef43 commit 8cb53ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/finder.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ Sort the result by name or by type (directories first, then files)::
170170

171171
$finder->sortByType();
172172

173+
Sort the files and directories by the last accessed, changed or modified time::
174+
175+
$finder->sortByAccessedTime();
176+
177+
$finder->sortByChangedTime();
178+
179+
$finder->sortByModifiedTime();
180+
173181
.. note::
174182

175183
Notice that the ``sort*`` methods need to get all matching elements to do

0 commit comments

Comments
 (0)
0