smallest_by

main
Ziyang Hu 2 years ago
parent 0bad3da7c2
commit 56a71078f9

@ -781,7 +781,7 @@ impl NormalAggrObj for AggrSmallestBy {
"'smallest_by' requires a list of exactly two items as argument" "'smallest_by' requires a list of exactly two items as argument"
); );
let c = &l[1]; let c = &l[1];
if *c < self.cost { if self.cost == DataValue::Null || *c < self.cost {
self.cost = c.clone(); self.cost = c.clone();
self.found = l[0].clone(); self.found = l[0].clone();
} }

Loading…
Cancel
Save