Skip to content

Commit

Permalink
package_list: return sorted by name
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi authored and tobes committed Jun 27, 2013
1 parent a4f0cf6 commit 3258907
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/logic/action/get.py
Expand Up @@ -78,6 +78,7 @@ def package_list(context, data_dict):
query = _select([col])
query = query.where(_and_(package_revision_table.c.state=='active',
package_revision_table.c.current==True))
query = query.order_by(col)
return zip(*query.execute())

def current_package_list_with_resources(context, data_dict):
Expand Down

0 comments on commit 3258907

Please sign in to comment.