Skip to content
Snippets Groups Projects
Commit a66a8238 authored by Tucker Gary Siegel's avatar Tucker Gary Siegel
Browse files

u

parent 65926eff
No related branches found
No related tags found
No related merge requests found
...@@ -195,10 +195,14 @@ func forecast(ctx common.DawnCtx, gddReq models.GddRequest, plantdate time.Time, ...@@ -195,10 +195,14 @@ func forecast(ctx common.DawnCtx, gddReq models.GddRequest, plantdate time.Time,
Date: plantdate.AddDate(0, 0, d), Date: plantdate.AddDate(0, 0, d),
}) })
} }
sort.Slice(bins, func(i, j int) bool {
return bins[i].Date.Before(bins[j].Date)
})
out[k] = &models.Bins{ out[k] = &models.Bins{
Bins: bins, Bins: bins,
} }
} }
return out return out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment