Update sorting.py

Fixing classes for Django Admin compliance