I am working on existing project.Getting records something like this:
$this->courses = Doctrine_Core::getTable('Course')->findByUserId($this->userId);
Now I want to sort above records by User id but I don’t know how ?
Is there any solution with this piece of code.
Thanks
You can: