summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/Chars.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-02-27 09:59:03 +0100
committerYorhel <git@yorhel.nl>2011-02-27 09:59:03 +0100
commit4582a5dce7c0793fe64806d4cba5ab9d386ea878 (patch)
treefab8a5eab8a6fc416e43d1ca0ea5f85d114d9528 /lib/VNDB/DB/Chars.pm
parent77f6ce0bb06e0496fbcc98656b82108d62c6aeef (diff)
chardb: Allow specifying the order of trait groups +'sexual' trait flag
The sexual flag isn't used yet.
Diffstat (limited to 'lib/VNDB/DB/Chars.pm')
-rw-r--r--lib/VNDB/DB/Chars.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/DB/Chars.pm b/lib/VNDB/DB/Chars.pm
index 03771132..a1ceb13b 100644
--- a/lib/VNDB/DB/Chars.pm
+++ b/lib/VNDB/DB/Chars.pm
@@ -61,7 +61,8 @@ sub dbCharGet {
FROM chars_traits ct
JOIN traits t ON t.id = ct.tid
LEFT JOIN traits tg ON tg.id = t."group"
- WHERE cid IN(!l)|, [ keys %r ]
+ WHERE cid IN(!l)
+ ORDER BY tg."order", t.name|, [ keys %r ]
)});
}