Skip to content

Commit

Permalink
Fixing order for other metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jan 18, 2015
1 parent 8bcba85 commit 83cb020
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nikola/utils.py
Expand Up @@ -35,6 +35,7 @@
import io
import locale
import logging
import natsort
import os
import re
import json
Expand Down Expand Up @@ -1241,8 +1242,8 @@ def write_metadata(data):
pass

# Leftover metadata (user-specified/non-default).
for k, v in data.items():
meta.append(f.format(k, v))
for k in natsort.natsorted(list(data.keys())):
meta.append(f.format(k, data[k]))

meta.append('')

Expand Down

0 comments on commit 83cb020

Please sign in to comment.