From fe642699f099027c919f0ce70a284e664b824407 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Thu, 14 Sep 2023 18:40:28 +0200 Subject: [PATCH] sort LevelBoundaryTime and PidControlTime by time first --- core/src/validation.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/validation.jl b/core/src/validation.jl index cafabd4db..4f422a5d6 100644 --- a/core/src/validation.jl +++ b/core/src/validation.jl @@ -321,7 +321,13 @@ sort_by_function(table::StructVector{<:Legolas.AbstractRecord}) = sort_by_id sort_by_function(table::StructVector{TabulatedRatingCurveStaticV1}) = sort_by_id_state_level sort_by_function(table::StructVector{BasinProfileV1}) = sort_by_id_level -const TimeSchemas = Union{TabulatedRatingCurveTimeV1, FlowBoundaryTimeV1, BasinForcingV1} +const TimeSchemas = Union{ + BasinForcingV1, + FlowBoundaryTimeV1, + LevelBoundaryTimeV1, + PidControlTimeV1, + TabulatedRatingCurveTimeV1, +} function sort_by_function(table::StructVector{<:TimeSchemas}) return sort_by_time_id