I've been trying to find a way to list many different items in an organized way.
Specifically, to accomplish the following:
A Page that will display in list format-
Name of School Department (sorted alphabetically by the department name)
Faculty belonging to that School Department (sorted alphabetically by Faculty's Lastname)
Desired output (sample):
Anatomy: Fred Cooks, Bart Deport, Lenny Yelisky
Math: Jonny Alfords, Matt Macking, Adam Zipper
Zoology: Pikurt Adams, Escce Cocks, Jonny Zypho
In the above sample, the Departments and the Department's Faculty are listed in alphabetical order.
I tried to follow tutorial:5-dataobject-relationship-management ([url]http://doc.silverstripe.org/doku.php?id=tutorial:5-dataobject-relationship-management[/url]); however, I was not able to get the Departments to sort automatically since it was using the SiteTree. Plus, Faculty was sorted based off the creation date, not Lastname. I tried to install the dataobjectmanager, however, that didn't seem to help...
I then tried to use the method described here-->[url]http://doc.silverstripe.org/doku.php?id=recipes:alphabetical_dataobjectset[/url] however I wasn't able to get that to work either.
I know there is an easy way to accomplish this; I just don't know what it is. Any help would be greatly appreciated!
(using SilverStripe CMS - 2.3.5)