]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Performance fix on Sphinx search results: use id instead of created timestamp for...
authorBrion Vibber <brion@pobox.com>
Tue, 2 Mar 2010 20:06:40 +0000 (12:06 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 2 Mar 2010 20:06:40 +0000 (12:06 -0800)
plugins/SphinxSearch/sphinxsearch.php

index 71f3308281163b9338efc660c3f156e986e61bd1..654b9c9d5beada8e83664c7a3a3138310e50466f 100644 (file)
@@ -75,7 +75,7 @@ class SphinxSearch extends SearchEngine
     {
         if ('chron' === $mode) {
             $this->sphinx->SetSortMode(SPH_SORT_ATTR_DESC, 'created_ts');
-            return $this->target->orderBy('created desc');
+            return $this->target->orderBy('id desc');
         }
     }