From 811a18a58c30241e895f02e43ec5db502e252c3f Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 12 Jan 2008 11:26:21 +0100 Subject: issue95, new sort order to group by tags Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'phpfspot.class.php') diff --git a/phpfspot.class.php b/phpfspot.class.php index c06ef24..329371f 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -53,7 +53,9 @@ class PHPFSPOT { 'date_asc' => 'Date ↑', 'date_desc' => 'Date ↓', 'name_asc' => 'Name ↑', - 'name_desc' => 'Name ↓' + 'name_desc' => 'Name ↓', + 'tags_asc' => 'Tags ↑', + 'tags_desc' => 'Tags ↓', ); /* Check necessary requirements */ @@ -2022,6 +2024,12 @@ class PHPFSPOT { return " ORDER BY basename(p.uri) DESC"; } break; + case 'tags_asc': + return " ORDER BY t.name ASC ,p.time ASC"; + break; + case 'tags_desc': + return " ORDER BY t.name DESC ,p.time ASC"; + break; } } // get_sort_order() -- cgit v1.2.3-18-g5258