The upheavals that began in the Middle East five years ago have reshuffled longstanding alliances and hostilities, created a staggering array of new actors, and left vast stretches of the region in either intermediate or total collapse—outcomes that have collectively shattered the prevailing order there.