diff --git a/src/middleware/data.rs b/src/middleware/data.rs index 1db91d0..ffa7a27 100644 --- a/src/middleware/data.rs +++ b/src/middleware/data.rs @@ -3,7 +3,7 @@ use log::error; use rbx_dom_weak::types::{Tags, Variant}; use serde::{Deserialize, Serialize}; use std::{ - collections::HashMap, + collections::{BTreeMap, HashMap}, path::{Path, PathBuf}, }; @@ -107,8 +107,8 @@ struct WritableData { #[serde(skip_serializing_if = "Option::is_none")] pub class_name: Option, - #[serde(skip_serializing_if = "HashMap::is_empty")] - pub properties: HashMap, + #[serde(skip_serializing_if = "BTreeMap::is_empty")] + pub properties: BTreeMap, #[serde(skip_serializing_if = "Option::is_none")] pub attributes: Option, #[serde(skip_serializing_if = "Vec::is_empty")]