from django.shortcuts import render_to_response

def view_persons(request):
    persons = Person.objects.all().order_by('-birthday', 'name')
return render_to_response('view_persons.html', {'persons': persons},
    context_instance=RequestContext(request))
Сортировка по дате с БД в Django