Skip to content

Commit 8a27ddb

Browse files
authored
Bugfix on date sorting (Thanks to @trinity-1686a) (#3619)
Not my finding. All credit to @trinity. Just extracting the bugfix to release 0.6.2.
1 parent 3463d66 commit 8a27ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickwit/quickwit-search/src/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl SortingFieldComputer {
100100
SortFieldType::U64 => SortValue::U64(sort_value),
101101
SortFieldType::I64 => SortValue::I64(i64::from_u64(sort_value)),
102102
SortFieldType::F64 => SortValue::F64(f64::from_u64(sort_value)),
103-
SortFieldType::DateTime => SortValue::U64(sort_value),
103+
SortFieldType::DateTime => SortValue::I64(i64::from_u64(sort_value)),
104104
SortFieldType::Bool => SortValue::Boolean(sort_value == 1u64),
105105
}
106106
}

0 commit comments

Comments
 (0)