Generate the index in alpha-sorted (by app name) order

This commit is contained in:
Ciaran Gultnieks 2010-12-06 21:29:41 +00:00
parent 9dcce12a32
commit a37e067420

View file

@ -173,6 +173,9 @@ for apk in apks:
print "WARNING: " + apk['apkname'] + " (" + apk['id'] + ") has no metadata" print "WARNING: " + apk['apkname'] + " (" + apk['id'] + ") has no metadata"
print " " + apk['name'] + " - " + apk['version'] print " " + apk['name'] + " - " + apk['version']
#Sort the app list by name, then the web site doesn't have to by default:
apps = sorted(apps, key=lambda app: app['name'])
# Create the index # Create the index
doc = Document() doc = Document()