diff --git a/ckanext/example_theme/v08_custom_helper_function/plugin.py b/ckanext/example_theme/v08_custom_helper_function/plugin.py index 5b3707b23b6..3dd3008a941 100644 --- a/ckanext/example_theme/v08_custom_helper_function/plugin.py +++ b/ckanext/example_theme/v08_custom_helper_function/plugin.py @@ -8,7 +8,7 @@ def most_popular_groups(): # Get a list of all the site's groups from CKAN, sorted by number of # datasets. groups = toolkit.get_action('group_list')( - data_dict={'sort': 'packages desc', 'all_fields': True}) + data_dict={'sort': 'package_count desc', 'all_fields': True}) # Truncate the list to the 10 most popular groups only. groups = groups[:10]