Make sorting by repo ID, rather than description

This commit is contained in:
Joseph Schorr 2015-05-07 13:10:26 -04:00
parent d42cf7b42a
commit 3cec22defe

View file

@ -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)