```python
sorted_rules = sorted(r.strip() for r in rule_set.split('\n')[1:-1])
```