Sorting subpages by customdate field reverse

Hello,
is there a possibility to sort subpages in panel by a custom field reverse?

num: 
    mode: date 
    field: startdate
sort: 
    mode: date 
    field: startdate

this works but asc.

But I can’t add ‘flip’ or ‘desc’ somwhere, like:

num: 
    mode: date 
    field: startdate
sort: 
    mode: date flip
    field: startdate

Thanks for help!

Since you number by that field anyway, a simple

pages:
    sort: flip

should do the job?

This is not going to work.

# /site/blueprints/news.yml
title: News
pages:
  template: 
    - event
    - archiv-item
  num: 
    mode: date 
    field: startdate
  sort: flip

This causes this:

Then try this:


pages:
  sort: startdate desc

1 Like

Yep, it works.
I was sure I tried that before, hmm,
Thanks a lot :grinning:

It’s missing from the docs, yet, I had already added it but failed to push. Need to do that now.

1 Like