Update lead.py

Fixed sorting bug