its not good to dry it in the sun.. not to mention that the time u harvet ur buds, it will most likely be close to raining.. so that wont really work either.. ur best bet is to get it to a safe house with a closet/basement/ect that is dark, and put it in there with a fan in there..
If u have to do it outside, u need to make some sort of plastic lean-to's or something that u can hang buds inside that to protect it from weather. the next problem is ventilation.. it needs ventilation to dry otherwise it will either Dry too fast and taste like butthole. or it will mold... make sure u got some wind coming in there
"An ounce of prevention equals a pound of cure."
treat it before u get it