#299 invalid
Corrin Meyer

sorting by DateTime not working

Reported by Corrin Meyer | May 23rd, 2008 @ 02:30 PM

I am trying to find and sort database entries using DateTime. I have example code at http://pastie.caboo.se/201360. The function in question is "find_published".

It doesn't matter if ":order => [:published_at.desc]" or ":order => [:published_at.asc]" is used, the returned array of Articles is the same. I am using the sqlite3 data objects adapter.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket