Skip to content

Commit

Permalink
Sort DatePeriod after merge and unique (#4)
Browse files Browse the repository at this point in the history
Add Sort Collection
  • Loading branch information
wit3 authored Feb 25, 2022
1 parent bf64554 commit 10f80da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Trend.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public function mapValuesToDates(Collection $values): Collection
return $values
->merge($placeholders)
->unique('date')
->sort()
->flatten();
}

Expand Down

0 comments on commit 10f80da

Please sign in to comment.