fixed sort routine

It was breaking on group query/reports because it tried to call `sort()` on a `ValuesListQuerySet`.