Ordering Based on created_at in HABTM relationship

I have the following line in my controller:

@tag = Tag.find_by_name @params[:id]

Now, how do I order the rows based on the HABTM relationship
problems_tags i.e. problems_tags.created_at DESC

Thanks :slight_smile:

John K.
http://www.kopanas.com

============================================================
http://www.soen.info - Index of online software engineering knowledge
http://www.cusec.net - Canadian University Software Engineering
Conference
http://www.soenlive.com - Presentations from CUSEC