Port date commands to engine-q

This commit is contained in:
Stefan Stanciulescu
2021-10-31 07:54:51 +01:00
parent 6e6df46469
commit 20c770370b
15 changed files with 852 additions and 1 deletions

View File

@ -377,6 +377,9 @@ impl PartialOrd for Value {
(Value::Float { val: lhs, .. }, Value::Float { val: rhs, .. }) => {
compare_floats(*lhs, *rhs)
}
(Value::Date { val: lhs, .. }, Value::Date { val: rhs, .. }) => {
lhs.date().to_string().partial_cmp(&rhs.date().to_string())
}
(Value::String { val: lhs, .. }, Value::String { val: rhs, .. }) => {
lhs.partial_cmp(rhs)
}