Re: Sorting via foreign key

2009-03-03 Thread Malcolm Tredinnick
On Tue, 2009-03-03 at 06:56 -0800, Bela Hausmann wrote: > I've got two models: a Category model and a Message model. The Message > model has a timestamp 'time_created', by which the messages are sorted > per default. My problem is, that I want to make a list of categories > ordered by the time_cre

Sorting via foreign key

2009-03-03 Thread Bela Hausmann
I've got two models: a Category model and a Message model. The Message model has a timestamp 'time_created', by which the messages are sorted per default. My problem is, that I want to make a list of categories ordered by the time_created date of the newest message in every category. Anyboy can he