I use a custom jquery table called Datatables. It can automatically sort columns for you. Apparently it can sort on date as well as long as it is something Date.parse can handle.
I’m having trouble figuring out the format I need that Date.parse can handle. Currently I generate with php a date with a timezone offset:
$mydate=date('Y-m-d g:i A',strtotime($utc)+$timezone_offset*60*60);
This will produce output that looks like: 2012-04-07 9:58 AM. Datatables doesn’t sort this well. What format can be taken in by Date.parse?
This format seems to get sorted properly: