Sort Pages by visibility

Hi there,

a customer of me need all, visible and invisible pages in his Blog. Is it possible to sort the pages for the status? Means

  • visible pages, sorted by number (default)
  • all invisible pages

Thanks

That is the default anyway, first the visible pages then the invisible ones, if you fetch the children

dump(page('blog')->children());
1 Like

Shame on me … I could have tried it in the simplest way possible. But sometimes you can not see the forest for the trees anymore. Thanks for the quick help :slight_smile: