Skip to content

Commit

Permalink
Avoid an unnecessary sort.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Oct 21, 2016
1 parent 1062ccb commit 7bd167d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/archiver/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def broken_links_index(include_sub_organizations=False):
num_broken_resources = 0
num_packages = 0
num_resources = 0
for org_name, org_counts in sorted(results.iteritems(), key=lambda r: r[0]):
for org_name, org_counts in results.iteritems():
data.append(OrderedDict((
('organization_title', results[org_name]['organization_title']),
('organization_name', org_name),
Expand Down

0 comments on commit 7bd167d

Please sign in to comment.