Skip to content

Commit

Permalink
only order by title (order by error title doesn't work, fix later)
Browse files Browse the repository at this point in the history
  • Loading branch information
SSilence committed Jan 19, 2015
1 parent b9139e2 commit 6ad90ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daos/mysql/Sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function getByLastUpdate() {
* @return mixed all sources
*/
public function get() {
$ret = \F3::get('db')->exec('SELECT id, title, tags, spout, params, filter, error FROM '.\F3::get('db_prefix').'sources ORDER BY error DESC, lower(title) ASC');
$ret = \F3::get('db')->exec('SELECT id, title, tags, spout, params, filter, error FROM '.\F3::get('db_prefix').'sources ORDER BY lower(title) ASC');
$spoutLoader = new \helpers\SpoutLoader();
for($i=0;$i<count($ret);$i++)
$ret[$i]['spout_obj'] = $spoutLoader->get( $ret[$i]['spout'] );
Expand Down

1 comment on commit 6ad90ad

@alfredbuehler
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was working with mysql as expected, but not with sqlite.

Please sign in to comment.