Skip to content

Commit

Permalink
Remove double-$sort
Browse files Browse the repository at this point in the history
  • Loading branch information
animaux authored and nitriques committed Apr 10, 2017
1 parent 27dc80a commit a9d8eb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions data-sources/data.search_suggestions.php
Expand Up @@ -47,9 +47,7 @@ public function grab(array &$param_pool = NULL) {
$keywords = (string)$_GET['term'];
$keywords = urldecode($keywords);
$keywords = trim($keywords);

$sort = '`frequency` DESC';


$sort = (string)$_GET['sort'];
if($sort == '' || $sort == 'alphabetical') {
$sort = '`keywords`.`keyword` ASC';
Expand Down

0 comments on commit a9d8eb8

Please sign in to comment.