From 309c2936f7a733e35722d4d8692482b9e592a96a Mon Sep 17 00:00:00 2001 From: jepso Date: Sun, 18 Nov 2007 17:44:08 +0000 Subject: [PATCH] reversed the order of search results --- lib/Doctrine/Search/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Search/Query.php b/lib/Doctrine/Search/Query.php index 0435d0cb5..dab747292 100644 --- a/lib/Doctrine/Search/Query.php +++ b/lib/Doctrine/Search/Query.php @@ -88,7 +88,7 @@ class Doctrine_Search_Query $where .= $this->parseClause($text); $groupby = 'GROUP BY ' . $foreignId; - $orderby = 'ORDER BY relevance'; + $orderby = 'ORDER BY relevance DESC'; $this->_sql = $select . ' ' . $from . ' ' . $where . ' ' . $groupby . ' ' . $orderby; }