summaryrefslogtreecommitdiff
path: root/utils/nwztools/database/gen_db.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/database/gen_db.py')
-rwxr-xr-xutils/nwztools/database/gen_db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/nwztools/database/gen_db.py b/utils/nwztools/database/gen_db.py
index 792a1b91c2..cf1423f2a5 100755
--- a/utils/nwztools/database/gen_db.py
+++ b/utils/nwztools/database/gen_db.py
@@ -201,8 +201,8 @@ with open("nwz_db.h", "w") as fp:
# create comment to explain the meaning, gather several meaning together
# if there are more than one (sorted to keep a stable order when we update)
explain = ""
- if name in sorted(g_nvp_desc):
- explain = " | ".join(list(g_nvp_desc[name]))
+ if name in g_nvp_desc:
+ explain = " | ".join(sorted(list(g_nvp_desc[name])))
# overwrite desc set with a single string for later
g_nvp_desc[name] = explain
fp.write(" NWZ_NVP_%s, /* %s */\n" % (name.upper(), explain))