How can I sort my products (data objects) when the are displayed on the category pages? I have followed a tutorial at ssbits.com, http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-2-using-model-admin-and-url-segments-to-create-a-product-catalogue.
This is the code from the tutorial which I think is is there to make it:
class CategoryPage_Controller extends Page_Controller
{
//Return the list of products for this category
public function getProductsList()
{
return $this->Products(Null, 'Price ASC');
}
...
I want them sort by Title.
Thanks,
Johan