mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 17:48:17 +00:00
use SortOrder in sorters always
This commit is contained in:
parent
f53448ae75
commit
3798b4aa8b
12 changed files with 52 additions and 110 deletions
|
@ -2693,14 +2693,6 @@ pub fn op_sorter_open(
|
|||
else {
|
||||
unreachable!("unexpected Insn {:?}", insn)
|
||||
};
|
||||
let order = order
|
||||
.get_values()
|
||||
.iter()
|
||||
.map(|v| match v {
|
||||
OwnedValue::Integer(i) => *i == 0,
|
||||
_ => unreachable!(),
|
||||
})
|
||||
.collect();
|
||||
let cursor = Sorter::new(order);
|
||||
let mut cursors = state.cursors.borrow_mut();
|
||||
cursors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue