Skip to content

Commit

Permalink
sortOn startTime program
Browse files Browse the repository at this point in the history
  • Loading branch information
seanhess committed Dec 12, 2024
1 parent f75fc89 commit a3b5529
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NSO/Data/Programs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ fromDatasets ai ds =
let gds = grouped (.instrumentProgramId) ds :: [Grouped InstrumentProgram Dataset]
pvs = fmap (programInversions ai) gds :: [[Inversion]]
ips = zipWith instrumentProgramStatus gds pvs
in zipWith3 ProgramFamily ips gds pvs
in sortOn startTime $ zipWith3 ProgramFamily ips gds pvs
where
startTime pf = pf.program.program.startTime


-- | All inversions for the given program
Expand Down

0 comments on commit a3b5529

Please sign in to comment.