Skip to content

Commit

Permalink
ordering versions properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed May 27, 2021
1 parent 54dbfe9 commit b0979f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/addonApi2.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function getPage($addon = '') {
FROM addon
LEFT JOIN version ON version.addon = addon.id
INNER JOIN user ON user.id=version.author
WHERE addon.slug='".$this->db->escape_string($addon)."'");
WHERE addon.slug='".$this->db->escape_string($addon)."'
ORDER BY main DESC,sub DESC, bug DESC");
while ($row = $res2->fetch_assoc()) {
$data['versions'][] = $row;
}
Expand Down

0 comments on commit b0979f4

Please sign in to comment.