How to get Concrete5 DatabaseItemList to order MySQL results by random
I encountered this today, so thought I'd share it.
Concrete5's DatabaseItemList has some marvelous functionality and useful helpers. However, the only handle it gives you for sorting is the native $this->sortBy(column, direction) function. So how do you make it random?
Hope this helps someone, as I Googled endlessly and no-one had the answer.
Enjoy this article? Why not subscribe to the full RSS feed?