diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index db6ac852558..da42b881aae 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -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):