From: bonebakker at attbi dot com Operating system: solaris PHP version: 4.2.3 PHP Bug Type: Feature/Change Request Bug description: extension to the dir class
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. -- Edit bug report at http://bugs.php.net/?id=22525&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22525&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22525&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22525&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22525&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22525&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22525&r=support Expected behavior: http://bugs.php.net/fix.php?id=22525&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22525&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22525&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22525&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22525&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22525&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22525&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22525&r=gnused