tools/generate_README: Order scripts by name

This commit is contained in:
Laurent Monin 2015-06-10 13:51:24 +02:00
parent 976871ad6d
commit b68a3d3435

View file

@ -41,6 +41,9 @@ for jsfilename in sorted(glob.glob('*.user.js')):
shortname = jsfilename.replace('.user.js', '')
items.append(dict(jsfile=jsfilename, shortname=shortname, header=d))
items.sort(key=lambda elem: elem['header']['name'])
doctitle = "MusicBrainz UserScripts"
print(doctitle)
print('=' * len(doctitle))