From: Ciaran Gultnieks Date: Mon, 6 Dec 2010 21:29:41 +0000 (+0000) Subject: Generate the index in alpha-sorted (by app name) order X-Git-Tag: 0.1~1609 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a37e0674204ad702c5dcc7bc9cb9b6539273d9e3;p=fdroidserver.git Generate the index in alpha-sorted (by app name) order --- 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()