From a37e0674204ad702c5dcc7bc9cb9b6539273d9e3 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 6 Dec 2010 21:29:41 +0000 Subject: [PATCH] Generate the index in alpha-sorted (by app name) order --- update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.py b/update.py index 83bde2e2..2840f7a9 100644 --- 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() -- 2.30.2