Sort by several things at once

Your task In the code box, write a function rank_staff(staff) where staff is a list of dicts with name, team and sales. Give back the names in leaderboard order: team A to Z, then sales highest first, then name A to Z. Then press Run my code.

Getting the editor ready