In the following excerpt from a student's essay discussing the effects of climate change on global agriculture, the organization of ideas is essential for conveying the message effectively:
Climate change is rapidly altering agricultural practices across the globe. With changing weather patterns, crops are affected both positively and negatively.
Temperature increases contribute to longer growing seasons in some regions. However, extreme weather events, such as droughts and floods, threaten food security.
Moreover, rising carbon dioxide levels may initially boost crop yield, yet the long-term impacts on soil quality and ecosystem health raise concerns.
What is the best way to reorganize the sentences in this paragraph to enhance clarity and logical flow?