The final levels, in this order, include the Moon/Grand Galloping Gala Level, the sequence with Smarty Pants which should automatically trigger after the boss fight, and in Dinky's Room in Derpy's house in reality (talk to Luna & Celestia there).
Getting the Discord uniform is completely optional and serves as extra content.