Skip to content

Commit

Permalink
Merge pull request #6 from muskie9/bugfix/sortSponsorList
Browse files Browse the repository at this point in the history
BUGFIX SponsorSort not applied to getSponsorsList()
  • Loading branch information
muskie9 authored Apr 26, 2018
2 parents 7bc0170 + b370ba8 commit 0124433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elements/ElementSponsor.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function (FieldList $fields) {
*/
public function getSponsorsList()
{
$list = $this->Sponsors();
$list = $this->Sponsors()->sort('SponsorSort');

if ($this->Limit > 0) {
$list = $list->limit($this->Limit);
Expand Down

0 comments on commit 0124433

Please sign in to comment.