Update sort.py

sorted the output file