My folder looks like:
content
1-Home
2-Team
groupA
Chef
1-Elon Musk
Employee
1-Alice
2-Bob
Trainee
1-Charlie
groupB
groupC
3-Contact
In The Team-Page template I want to display all Employees of a specific group as a dynamic list. How do I get them and sorted by the number?
I have something working which gives me all, the chef, employees and trainees:
$team = $page->find('groupA', 'Employee')->children()->children();
foreach($team as $name):
echo $name;
endforeach;