Create sorting.py

Inserting code.