show superior Characters in ranking in reverse order (Issue #191)
This commit is contained in:
parent
fa7b9b552b
commit
d9d6a3aaf5
1 changed files with 5 additions and 1 deletions
|
|
@ -292,7 +292,7 @@
|
||||||
*/
|
*/
|
||||||
public function getSuperiorCharacters($seminaryId, $xps, $count)
|
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 '.
|
'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 '.
|
'FROM v_characters AS characters '.
|
||||||
'INNER JOIN charactertypes ON charactertypes.id = characters.charactertype_id '.
|
'INNER JOIN charactertypes ON charactertypes.id = characters.charactertype_id '.
|
||||||
|
|
@ -305,6 +305,10 @@
|
||||||
'user',
|
'user',
|
||||||
$seminaryId, $xps, $count
|
$seminaryId, $xps, $count
|
||||||
);
|
);
|
||||||
|
$data = array_reverse($data);
|
||||||
|
|
||||||
|
|
||||||
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue