From 3cec22defe985d8860212173f432ce7640664f49 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 7 May 2015 13:10:26 -0400 Subject: [PATCH] Make sorting by repo ID, rather than description --- data/model/legacy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/data/model/legacy.py b/data/model/legacy.py index 9b295d7eb..f9d8fd57a 100644 --- a/data/model/legacy.py +++ b/data/model/legacy.py @@ -904,9 +904,8 @@ def get_visible_repositories(username=None, include_public=True, page=None, limit=limit, namespace=namespace, select_models=[Repository, Namespace, Visibility]) - # TODO(jschorr): Reenable with a better sorting method - #if sort: - # query = query.order_by(Repository.description.desc()) + if sort: + query = query.order_by(Repository.id.desc()) if limit: query = query.limit(limit)