summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2013-12-29 12:59:47 +0000
committerNathan Kinkade <nath@nkinka.de>2013-12-29 12:59:47 +0000
commit1d8452d5ca9f8ed0b7adb076fb2553e8eff46a21 (patch)
tree9994b00d47e9adfdbedba5657359a0af54b81cdb
parent391b41445735c0f6deadf6113e6c9346b90d5ab8 (diff)
Sort tag search results descending.
-rw-r--r--modules/tag/models/tag.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php
index 0550910d..8027a505 100644
--- a/modules/tag/models/tag.php
+++ b/modules/tag/models/tag.php
@@ -46,7 +46,7 @@ class Tag_Model_Core extends ORM {
->join("items_tags", "items.id", "items_tags.item_id")
->where("items_tags.tag_id", "=", $this->id)
->merge_where($where)
- ->order_by("items.id")
+ ->order_by("items.id", DESC)
->find_all($limit, $offset);
}