Remove unnecessary sort call in alias declarations that get written