What order does either Menu(integer) or Level(integer) return in?
Is it possible to over-ride either Menu(integer) or Level(integer) in your own controller such that you can specify the order you wish?
Or even <% control children %>?
I was looking at [url=http://doc.silverstripe.com/doku.php?id=built-in-page-controls]built-in-page-controls[/url], which contains a link to [url=http://doc.silverstripe.com/doku.php?id=custom-page-controls]custom-page-controls[/url] which does not yet exist.
Let's say there is a WidgetHolder, with Widgetpages; WidgetHolder can only have WidgetPages as children and each WidgetPage has a price associated with it.
Let's say that you wanted each WidgetPage to display in price order on the WidgetHolder template, however, because you knew you had so many WidgetPages, you also wanted to create an inline navigation list up to the top, so people didn't have to scroll all the way to the Widget of their choice.
Wouldn't it be easier to write a custom control to return children in price order?
1st argument = what you want to get eg widget page
2nd argument = the filter (you probably don't need this - Ive set it as "")
3rd argument = the order which you want it sorted by (Price in DESC or ASC order for example)
4th = Join (dont worry about that)
5th = Limit AKA how many you WidgetPages you want to limit to (10)
Then in the template do <% control GetWidgetsInPriceOrder %> instead of Menu.