%sorted = $+(%sorted,$chr(32),$remove(%alpha1,$chr(32)))

There's a closing parenthesis missing.