diff --git a/src/external/database/serde/deserialize.rs b/src/external/database/serde/deserialize.rs index 688dfc7..007099e 100644 --- a/src/external/database/serde/deserialize.rs +++ b/src/external/database/serde/deserialize.rs @@ -23,8 +23,10 @@ pub enum DeserializeDatabase { impl From for Collection { fn from(database: DeserializeDatabase) -> Self { match database { - DeserializeDatabase::V20250103(collection) => { - collection.into_iter().map(Into::into).collect() + DeserializeDatabase::V20250103(db) => { + let mut collection: Collection = db.into_iter().map(Into::into).collect(); + collection.sort_unstable(); + collection } } }