Update sorting.py