note 104754 added to mongocursor.sort
| From: | klgleb at gmail dot com | Date: | Tue, 05 Jul 2011 18:00:59 +0000 |
| Subject: | note 104754 added to mongocursor.sort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181260@lists.php.net to get a copy of this message | ||
Here both arrays are equal
// sort date ascending and age descending
$cursor->sort(array('date' => 1, 'age' => -1));
// sort age descending and date ascending
$cursor->sort(array('age' => -1, 'date' => 1));
----
Server IP: 69.147.83.197
Probable Submitter: 92.62.62.50
----
Manual Page -- http://www.php.net/manual/en/mongocursor.sort.php
Edit -- https://master.php.net/note/edit/104754
Del: integrated -- https://master.php.net/note/delete/104754/integrated
Del: useless -- https://master.php.net/note/delete/104754/useless
Del: bad code -- https://master.php.net/note/delete/104754/bad+code
Del: spam -- https://master.php.net/note/delete/104754/spam
Del: non-english -- https://master.php.net/note/delete/104754/non-english
Del: in docs -- https://master.php.net/note/delete/104754/in+docs
Del: other reasons-- https://master.php.net/note/delete/104754
Reject -- https://master.php.net/note/reject/104754
Search -- https://master.php.net/manage/user-notes.php