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 committed Jun 26, 2013
1 parent 9d4ba31 commit c84e9ea
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 c84e9ea

Please sign in to comment.