From 4ee5f0862be1d13f69e4ddf552e415eb0f40061f Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Thu, 19 Jun 2008 19:18:44 -0400 Subject: order by last update on package view --- packages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/views.py b/packages/views.py index cb6bb81..2a77be5 100644 --- a/packages/views.py +++ b/packages/views.py @@ -106,7 +106,7 @@ def search(request, query=''): # sort results if sort == '': - results = results.order_by('repo', 'arch', 'pkgname') + results = results.order_by('repo', 'arch', '-last_update', 'pkgname') else: # duplicate sort fields shouldn't hurt anything results = results.order_by(sort, 'repo', 'arch', 'pkgname') -- cgit v1.2.3-24-g4f1b