Implemented sorting by date and by titile tests.