show superior Characters in ranking in reverse order (Issue #191)
This commit is contained in:
parent
aac24b0595
commit
3bc904f61c
1 changed files with 5 additions and 1 deletions
|
|
@ -292,7 +292,7 @@
|
|||
*/
|
||||
public function getSuperiorCharacters($seminaryId, $xps, $count)
|
||||
{
|
||||
return $this->db->query(
|
||||
$data = $this->db->query(
|
||||
'SELECT characters.id, characters.created, characters.charactertype_id, characters.name, characters.url, characters.xps, characters.xplevel, characters.avatar_id, charactertypes.name AS charactertype_name, charactertypes.url AS charactertype_url '.
|
||||
'FROM v_characters AS characters '.
|
||||
'INNER JOIN charactertypes ON charactertypes.id = characters.charactertype_id '.
|
||||
|
|
@ -305,6 +305,10 @@
|
|||
'user',
|
||||
$seminaryId, $xps, $count
|
||||
);
|
||||
$data = array_reverse($data);
|
||||
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue