1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

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 " " + 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
doc = Document()