crofty
unread,Aug 27, 2009, 6:44:32 AM8/27/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to json-query
Hi,
Is it possible to sort by date in json-query?
Suppose I had the json:
var sortableDates = [
{first:'john',last:'doe', created_at: "Wed Aug 26 2009 10:00:00
GMT+0100 (BST)"},
{first:'joe',last:'pass', created_at: "Thu Aug 27 2009 10:00:00
GMT+0100 (BST)"},
{first:'alice',last:'doe', created_at: "Fri Aug 28 2009 10:00:00
GMT+0100 (BST)"}
]
Am I right in thinking that the 'created_at' attributes will need to
be converted to Date objects in order to be sorted correctly. If so,
how is this done in the query?
Thanks