note 104754 deleted from mongocursor.sort by derick
| From: | derick@php.net | Date: | Thu, 29 Nov 2012 13:07:03 +0000 |
| Subject: | note 104754 deleted from mongocursor.sort by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192198@lists.php.net to get a copy of this message | ||
Note Submitter: klgleb at gmail dot com
----
Here both arrays are equal
<?php
// 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));
?>