analyze.py: Sort hosts by IP