Perch Content Custom Count, Then Sort

  • Hello,


    I'm trying to use perch_content_custom to select the first two items from a combined set of regions, then sort the items in reverse order:


    Code
    1. 'count'=> 2,
    2. 'sort-order' => 'DESC',
    3. 'sort' => '_id'

    However this is selecting the last two items from the list.


    Is it possible to select the first two items then sort them afterwards?

  • drewm

    Approved the thread.
  • Hi Tony,


    A possible option could be to skip the templating when you fetch the items, reverse the array and then render the template with perch_template():