Skip to content

Commit

Permalink
fix: ensure default sort is fired if sort param is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Feb 22, 2016
1 parent c41c3ca commit c32b483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected function createBaseBuilder(array $options = [])

$this->applyResourceOptions($query, $options);

if (!isset($options['sort'])) {
if (empty($options['sort'])) {
$this->defaultSort($query, $options);
}

Expand Down

0 comments on commit c32b483

Please sign in to comment.