Team Sonic does their thing at the start of the movie to set the scene and show how the bonds of the team have grown
Shadow causes destruction
Sonic team tries to stop him, fails miserably
Team up with Robotnik cuz they need his help
Character development stuff as the team follows shadows wake of chaos
They fight Shadow for a final time, beat him, and convince him to become a good guy
Everyone is happy
Robotnik betrayal, reveals Metal Sonic
Metal beats up Shadow
Sonic has to fight Metal, resulting in a battle where Sonic loses due to cockiness
Sonic and Shadow have to team up to try and beat Robotnik and Metal
Big battle against Metal, Metal loses
Robotnik teams up with his grandfather (I forgor his canon name) and then unveil the orbital laser thingy from Sonic adventure
Out comes the creature thing also from Sonic Adventure
Sonic and Shadow go super and fight it, and win due to combined power
Sonic and Shadow destroy the death ray, Shadow potentially giving up his life doing so, and probably killing Eggmans grandfather
Stuff settles down, Sonic team mourns Shadows death
Movie ends with plot twist of Shadow apparently being alive
Live and Learn plays in the credits
Post credit scene alluding to next film with some character reveal like maybe Amy