Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorPollux
     
    Hi

    I have created a scaffold named post. I want to sort descending my entries by their ids. I obviously can use sortable_link, but I don't want to do it. My posts should be sorted this way, without clicking any link.

    Can you help me?
    • CommentAuthorarnoschn
     
    Hello,

    you need to set the "order" on the finder options.

    $options = $this->pagination_helper->getFindOptions($this->MyModel);
    $options['order'] = 'id DESC';

    Add that pls in the controller - listing action.

    Arno
    • CommentAuthorPollux
     
    Thanks a lot, it helped.