Skip to content

Commit

Permalink
Merge pull request #25 from ArskaCode/main
Browse files Browse the repository at this point in the history
Sort properties alphabetically when writing data
  • Loading branch information
DervexDev authored May 4, 2024
2 parents d02d826 + d638aea commit 66c2ea9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/middleware/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};

Expand Down Expand Up @@ -107,8 +107,8 @@ struct WritableData {
#[serde(skip_serializing_if = "Option::is_none")]
pub class_name: Option<String>,

#[serde(skip_serializing_if = "HashMap::is_empty")]
pub properties: HashMap<String, UnresolvedValue>,
#[serde(skip_serializing_if = "BTreeMap::is_empty")]
pub properties: BTreeMap<String, UnresolvedValue>,
#[serde(skip_serializing_if = "Option::is_none")]
pub attributes: Option<Variant>,
#[serde(skip_serializing_if = "Vec::is_empty")]
Expand Down

0 comments on commit 66c2ea9

Please sign in to comment.