Make sorting by repo ID, rather than description
This commit is contained in:
parent
d42cf7b42a
commit
3cec22defe
1 changed files with 2 additions and 3 deletions
|
@ -904,9 +904,8 @@ def get_visible_repositories(username=None, include_public=True, page=None,
|
||||||
limit=limit, namespace=namespace,
|
limit=limit, namespace=namespace,
|
||||||
select_models=[Repository, Namespace, Visibility])
|
select_models=[Repository, Namespace, Visibility])
|
||||||
|
|
||||||
# TODO(jschorr): Reenable with a better sorting method
|
if sort:
|
||||||
#if sort:
|
query = query.order_by(Repository.id.desc())
|
||||||
# query = query.order_by(Repository.description.desc())
|
|
||||||
|
|
||||||
if limit:
|
if limit:
|
||||||
query = query.limit(limit)
|
query = query.limit(limit)
|
||||||
|
|
Reference in a new issue