summaryrefslogtreecommitdiff
path: root/model/Category.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Category.php')
-rw-r--r--model/Category.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/Category.php b/model/Category.php
index 1b699fb..b7c46d9 100644
--- a/model/Category.php
+++ b/model/Category.php
@@ -34,7 +34,7 @@ class Category {
}
function get_threads($dbc) {
- $sql = "SELECT thread_id FROM threads WHERE thread_category = " . $this->id . " ORDER BY thread_date_lastpost";
+ $sql = "SELECT thread_id FROM threads WHERE thread_category = " . $this->id . " ORDER BY thread_date_lastpost DESC";
$result = mysqli_query($dbc, $sql);
if (!$result) {
@@ -80,7 +80,7 @@ class Category {
}
function get_all_categories($dbc) {
- $sql = "SELECT cat_id FROM categories";
+ $sql = "SELECT cat_id FROM categories ORDER BY cat_id ASC;";
$result = mysqli_query($dbc, $sql);
if (!$result) {