summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exts/policyident.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/exts/policyident.py b/exts/policyident.py
index 8cdc636..9679bba 100644
--- a/exts/policyident.py
+++ b/exts/policyident.py
@@ -41,7 +41,9 @@ class PolicyIndex(Index):
'', # qualifier
'')) # descr
- return ([(k, sorted(v)) for k, v in entries.items()], False)
+ return (sorted([(k, sorted(v)) for k, v in entries.items()],
+ key=lambda kv: kv[1]),
+ False)
def find_pg_id(section):