Fixed sorting by takedate (#152)