diff --git a/lib/day.rb b/lib/day.rb index 4f15f86..6588034 100644 --- a/lib/day.rb +++ b/lib/day.rb @@ -15,6 +15,7 @@ class Day < Sequel::Model interval.begin, )) .where(Sequel.expr(:date) <= interval.end) + .order(Sequel.asc(:date)) end def currencies