|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-28 21:17 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: krakjoe
[2013-10-28 21:17 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
it would be nice of the dir class is extended with a 'sort' method. The 'sort' method accepts a single flag, indicating the mode by which it needs to sort. eg: $dir->sort('name') : sort A-Za-z, based on names $dir->sort('ext') : sort A-Za-z, based on ext $dir->sort('date') : sort based on timestamp $dir->sort('cdate') : sort based on creation date $dir->sort('adate') : sort based on access date $dir->sort('size') : sort based on file size preceding any call with '-' makes the order descending + or nothing defaults to ascending.