Hi all,
(Apologies if this question is a repeat and/or fairly simple! I’ve just been scratching my head for a while.)
I’m trying to sort the content under a folder called “photography” to sort according to the manual dragging in the CMS. The prefix of the folder names for each child are successfully getting renumbered according to the order in the CMS! That’s why I think it’s a problem with how I’m templating it.
This is what I have to sort them. The result looks completely random.
<?php $i = 0; foreach(page('photography')->children()->sortBy('order', 'asc') as $upload): ?>
Is there a better “sortBy” parameter that I could be using?
Happy to provide more info, and thank you all!!