Fix an error that occurred if `cvs history` returned too many days.
Convert to single quotes.
Fix a bug where dates would be sorted incorrectly.

There's probably a better way to do this, but this solution seems like
the simplest.