summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-12 11:26:21 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-12 11:26:21 +0100
commit811a18a58c30241e895f02e43ec5db502e252c3f (patch)
tree6cb1c8bf904f0c850a3eee2133fc374bc91fce23 /phpfspot.class.php
parent6fa8b66f5bddfe7a031323f623d066415e95d453 (diff)
issue95, new sort order to group by tags
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php10
1 files changed, 9 insertions, 1 deletions
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 &uarr;',
'date_desc' => 'Date &darr;',
'name_asc' => 'Name &uarr;',
- 'name_desc' => 'Name &darr;'
+ 'name_desc' => 'Name &darr;',
+ 'tags_asc' => 'Tags &uarr;',
+ 'tags_desc' => 'Tags &darr;',
);
/* 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()