Update views.py

Tidying and add ordering