fixing ordering checkpoint

This commit is contained in:
2026-05-14 03:21:12 -04:00
parent 3d918a1acc
commit 3034406706
14 changed files with 89 additions and 85 deletions

View File

@ -5,6 +5,7 @@ pub mod filter;
pub mod polymorphism;
use crate::database::schema::Schema;
use indexmap::IndexMap;
impl Schema {
pub fn compile(
@ -48,7 +49,7 @@ impl Schema {
}
}
let mut props = std::collections::BTreeMap::new();
let mut props = IndexMap::new();
// 1. Resolve INHERITANCE dependencies first
if let Some(crate::database::object::SchemaTypeOrArray::Single(t)) = &self.obj.type_ {
@ -124,8 +125,7 @@ impl Schema {
// 4. Set the OnceLock!
let _ = self.obj.compiled_properties.set(props.clone());
let mut names: Vec<String> = props.keys().cloned().collect();
names.sort();
let names: Vec<String> = props.keys().cloned().collect();
let _ = self.obj.compiled_property_names.set(names);
// 5. Compute Edges natively