summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index d0aba0b..cb53cb1 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -693,7 +693,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
switch($sortOrder) {
case 'date_asc':
- $query_5 .= ' ORDER BY B.bModified ASC ';
+ $query_5 .= ' ORDER BY B.' . $GLOBALS['dateOrderField'] . ' ASC ';
break;
case 'title_desc':
$query_5 .= ' ORDER BY B.bTitle DESC ';
@@ -714,7 +714,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
$query_5 .= ' ORDER BY B.bAddress ASC ';
break;
default:
- $query_5 .= ' ORDER BY B.bModified DESC ';
+ $query_5 .= ' ORDER BY B.' . $GLOBALS['dateOrderField'] . ' DESC ';
}
// Handle the parts of the query that depend on any tags that are present.