diff --git a/core/lib.rs b/core/lib.rs index c753a0ec8..acb59adc0 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -5,7 +5,6 @@ mod io; mod pager; mod pseudo; mod schema; -mod sorter; mod sqlite3_ondisk; mod storage; mod translate; diff --git a/core/vdbe/mod.rs b/core/vdbe/mod.rs index ca02030ba..575dbb6bc 100644 --- a/core/vdbe/mod.rs +++ b/core/vdbe/mod.rs @@ -1,5 +1,6 @@ pub mod builder; pub mod explain; +pub mod sorter; use crate::btree::BTreeCursor; use crate::function::{AggFunc, SingleRowFunc}; @@ -927,7 +928,7 @@ impl Program { _ => unreachable!(), }) .collect(); - let cursor = Box::new(crate::sorter::Sorter::new(order)); + let cursor = Box::new(sorter::Sorter::new(order)); cursors.insert(*cursor_id, cursor); state.pc += 1; } diff --git a/core/sorter.rs b/core/vdbe/sorter.rs similarity index 100% rename from core/sorter.rs rename to core/vdbe/sorter.rs