You can choose the order of the cards being placed into the graveyard.

Artwork
Loading artwork…
Morality Shift
Judgment · #70 · EN
Nonfoil—Foil—
Card rules
Exchange your graveyard and library. Then shuffle your library.
The mind sings, though at times it sings a dirge.
Rare · Illustrated by Jerry Tiritilli
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
This spell works even if your graveyard or library is empty.