diff options
-rw-r--r-- | modules/tag/models/tag.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index e8bd69c5..96f926bb 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -31,7 +31,8 @@ class Tag_Model extends ORM { $model = ORM::factory("item") ->viewable() ->join("items_tags", "items.id", "items_tags.item_id") - ->where("items_tags.tag_id", "=", $this->id); + ->where("items_tags.tag_id", "=", $this->id) + ->order_by("captured", "DESC"); if ($type) { $model->where("items.type", "=", $type); } @@ -130,4 +131,4 @@ class Tag_Model extends ORM { } return $url; } -}
\ No newline at end of file +} |