Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

DataObject get() and get_one() has different syntax for sorting


Reply

2 Posts   2198 Views

Avatar
xmedeko

28 May 2007 at 11:20am (Last edited: 28 May 2007 11:33am), Community Member, 94 Posts

Sorry, the problem was in my code, and not in SS. So I have edited this post later (I cannot delete it).

Anyway, DataObject::get(...) has the $sort argument, but DataObject::get_one(...) has the $orderby argument. Both arguments have the same functionality, but different names, which is a little bit confusing.

Avatar
Matt

31 May 2007 at 12:11am Core Development Team, 84 Posts

Andy: This is probably a good candidate for fixing in your doc updates for the core (assuming you haven't already done it).