I have an array in an embedded document and I want to sort this array by one of it's element, can I implement this in a way like the ODM in phalcon? for example, can I sort it in this way?
find(array( 'conditions' => array( 'time' => array($compare => $time)), 'sort' => array('time' => -1), 'limit' => $count ));
image below is my document in mongodb, and I want to sort the elements of array called document by $time, can phalcon implement this? I know mongodb itself can, but I don't know how to do this in phalcon. Thanks!