LSsearch : fix bug in sort direction
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 4 Nov 2014 11:34:20 +0000 (12:34 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 4 Nov 2014 11:34:20 +0000 (12:34 +0100)
public_html/includes/class/class.LSsearch.php

index edcff01..e19d4a6 100644 (file)
@@ -1099,10 +1099,10 @@ class LSsearch {
     $sortBy = $this -> params['sortBy'];
     $sortDirection = $this -> params['sortDirection'];
     if ($sortDirection=='ASC') {
-      $dir = -1;
+      $dir = 1;
     }
     else {
-      $dir = 1;
+      $dir = -1;
     }
     $oa = new LSsearchEntry($this,$this -> LSobject,$this -> params,$this -> _hash,$this -> result['list'],$a);
     $va = $oa->$sortBy;