From fdfb8068014176a2443265018a0a53027d535506 Mon Sep 17 00:00:00 2001 From: Mike Cochrane Date: Sun, 20 Jul 2008 05:48:32 -0400 Subject: Sort tags by highest frequency then most recent darcs-hash:20080720094832-533db-91b0cf2e0589ca4008b3011d5acd41449caa0904.gz --- actions/tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions') diff --git a/actions/tag.php b/actions/tag.php index e073a4837..9e0b09324 100644 --- a/actions/tag.php +++ b/actions/tag.php @@ -90,7 +90,7 @@ class TagAction extends StreamAction { $tags->selectAdd('count(1) as num'); $tags->selectAdd('max(notice_id) as last_notice_id'); $tags->groupBy('tag'); - $tags->orderBy('num DESC'); + $tags->orderBy('num DESC, last_notice_id DESC'); $tags->whereAdd('created > "' . strftime('%Y-%m-%d %H:%M:%S', strtotime('-1 WEEK')) . '"'); $page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; -- cgit v1.2.3-54-g00ecf