update ds/sorting.py.