PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #2788

sort order ascending/descending

Details

Request #2788sort order ascending/descending
Submitted2004-11-18 20:23 UTC
Frommi dot te at gmx dot de
StatusWont fix
PackageDB_DataObject
PHP VersionIrrelevant
OSall
Roadmaps(Not assigned)

Comments

[2004-11-18 20:23 UTC] mi dot te at gmx dot de

Description:
------------
It would be really helpful if one could specify the sort order when using the orderBy()-function.

Most confortable would be something like this (like whereAdd):
$person->orderBy('age','DESC');
or
$person->orderBy('eye','ASC');

Thanks a lot

Michael

[2004-11-19 23:05 UTC] mi dot te at gmx dot de

Duh! Now you write it, it makes perfect sense...

Please be so kind to mention it also in the documentation.

Thanks a lot for your help

Michael