sort() didn't work the way I thought, switch to sorted().  fix typo