Skip to content

Commit

Permalink
Sort keys in tag cloud
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 26, 2015
1 parent 81820b5 commit 449b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/tags.py
Expand Up @@ -172,7 +172,7 @@ def write_tag_data(data):
"""Write tag data into JSON file, for use in tag clouds."""
utils.makedirs(os.path.dirname(output_name))
with open(output_name, 'w+') as fd:
json.dump(data, fd)
json.dump(data, fd, sort_keys=True)

if self.site.config['WRITE_TAG_CLOUD']:
task = {
Expand Down

0 comments on commit 449b873

Please sign in to comment.