Skip to content

Commit

Permalink
Add order to sql input query
Browse files Browse the repository at this point in the history
  • Loading branch information
fastslack committed Sep 21, 2014
1 parent 09085f2 commit a67f3d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/joomla/form/fields/sql.php
Expand Up @@ -214,6 +214,12 @@ protected function processQuery($conditions, $filter)
}
}

// Add order to query
if (!empty($conditions['order']))
{
$query->order($conditions['order']);
}

return $query;
}

Expand Down

0 comments on commit a67f3d9

Please sign in to comment.