From 4ce9e46f923922ff1db5764a37891966a4898aca Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Wed, 20 Nov 2024 14:46:47 +0100 Subject: [PATCH] Order by date? I'm just troubleshooting a failed spec on ci, which i can't reproduce locally. --- lib/day.rb | 1 + 1 file changed, 1 insertion(+) 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