added sort by date (handles date and datetime)

had to have this change for a project i'm working on, so figured i'd contribute back to the project, seeing as you had it as a feature request.
my changes allow date and date-time sorting, using the Date.parse() method.
[here is a fiddle](http://jsfiddle.net/3hFPV/) to show it working.