'Column sorting logic based on request GET parameters.'

def _do_sort_webapp(self, qs, date_sort):

    (sort_type, order) = clean_sort_param(self.request, date_sort=date_sort)
    order_by = (('-' if (order == 'desc') else '') + sort_type)
    if (sort_type == 'name'):
        return order_by_translation(qs, order_by)
    else:
        return qs.order_by('-priority_review', order_by)
