Update views.py

update on sort