Skip to main content

sort_dedup

Function sort_dedup 

fn sort_dedup(knots: Vec<KnottedDate>) -> Vec<KnottedDate>
Expand description

Sorts knots ascending by date and drops duplicates (same date), keeping the first-seen kind. Shared by both schedule builders so a curve always sees a strictly-ascending, deduplicated knot set.