```python
def sort_by_len(words: list) -> list:
    """Sorts a list of words by their length,,, and alphabetically for words of the same length."""
    return sorted(words, key=lambda x: (len(x), x))
```