chiark / gitweb /
sort antiFeatures list in index-v1.json
authorMichael Pöhn <michael.poehn@fsfe.org>
Wed, 16 Aug 2017 03:46:32 +0000 (05:46 +0200)
committerMichael Pöhn <michael.poehn@fsfe.org>
Tue, 26 Sep 2017 12:12:53 +0000 (14:12 +0200)
fdroidserver/index.py

index 3ff990a9c2988fd5580212aa867e27f5ef315d7f..7fea41b6d0669ca6f408de65012c0f66551691d5 100644 (file)
@@ -163,7 +163,7 @@ def make_v1(apps, packages, repodir, repodict, requestsdict, fdroid_signing_key_
 
     def _index_encoder_default(obj):
         if isinstance(obj, set):
-            return list(obj)
+            return sorted(list(obj))
         if isinstance(obj, datetime):
             return int(obj.timestamp() * 1000)  # Java expects milliseconds
         raise TypeError(repr(obj) + " is not JSON serializable")