Fix a bunch of things to handle dates and sort by them.