Updated views.py to allow for sorting by column