summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-06-19 19:18:44 -0400
committerDusty Phillips <buchuki@gmail.com>2008-06-19 19:18:44 -0400
commit4ee5f0862be1d13f69e4ddf552e415eb0f40061f (patch)
treec647c8878322cf68e5785c507a58d1ef0f6a9642 /packages/views.py
parent202e71d0494d24b3328eb6f0fa039f732d01ef15 (diff)
order by last update on package view
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index cb6bb816..2a77be53 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')