
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
-
Corrin Meyer May 23rd, 2008 @ 09:09 PM
This is a duplicate of ticket #301 which I posted. I didn't see it on the open ticket list and thought that maybe an error occurred when I posted it.
-
Dan Kubb (dkubb) May 25th, 2008 @ 06:23 PM
- State changed from new to invalid
Closing because this is a duplicate of #301
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »