chiark / gitweb /
Generate the index in alpha-sorted (by app name) order
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 6 Dec 2010 21:29:41 +0000 (21:29 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 6 Dec 2010 21:29:41 +0000 (21:29 +0000)
update.py

index 83bde2e2119a9afa8a0bd891ee6d24ed91695db1..2840f7a92d372f53a75565f0a0ba186a44be0ee2 100644 (file)
--- a/update.py
+++ b/update.py
@@ -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()