sort Character groups Quests by date (resolves issue #305)

This commit is contained in:
coderkun 2014-05-27 09:30:29 +02:00
commit 6ba52812c9

View file

@ -52,7 +52,8 @@
return $this->db->query(
'SELECT id, questgroups_id, title, url, xps '.
'FROM charactergroupsquests '.
'WHERE charactergroupsgroup_id = ?',
'WHERE charactergroupsgroup_id = ? '.
'ORDER BY created ASC',
'i',
$groupsgroupId
);
@ -124,7 +125,7 @@
'FROM charactergroupsquests_groups '.
'LEFT JOIN charactergroupsquests ON charactergroupsquests.id = charactergroupsquests_groups.charactergroupsquest_id '.
'WHERE charactergroupsquests_groups.charactergroup_id = ? '.
'ORDER BY charactergroupsquests.created DESC',
'ORDER BY charactergroupsquests.created ASC',
'i',
$groupId
);