diff --git a/classes/addonApi2.php b/classes/addonApi2.php index 90c96fd..4796d6e 100644 --- a/classes/addonApi2.php +++ b/classes/addonApi2.php @@ -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; }