bevy/crates/bevy_scene/src
LP fab0e5d085
Sorts the scene entries by path before serializing. (#15047)
# Objective

Fixes: https://github.com/bevyengine/bevy/issues/14515

## Solution

Sorts the iterator with itertools' sorted_by function. This is required
given that 'self.entries' is an immutable &[Box<dyn PartialReflect]
which also doesn't implement Clone or Copy.

## Testing

The modifications passed the unit testing only after they were edited to
ensure that the items were in alphabetical order.
I haven't checked for performance implications.
2024-09-09 15:31:30 +00:00
..
bundle.rs Implement clone for most bundles. (#12993) 2024-04-16 16:37:09 +00:00
dynamic_scene.rs reflect: implement the unique reflect rfc (#7207) 2024-08-12 17:01:41 +00:00
dynamic_scene_builder.rs reflect: implement the unique reflect rfc (#7207) 2024-08-12 17:01:41 +00:00
lib.rs Unify crate-level preludes (#15080) 2024-09-08 17:10:57 +00:00
scene.rs Align Scene::write_to_world_with to match DynamicScene::write_to_world_with (#13855) 2024-07-15 14:04:09 +00:00
scene_filter.rs Make builder types take and return Self (#10001) 2023-10-09 19:46:17 +00:00
scene_loader.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00
scene_spawner.rs Change SceneInstanceReady to trigger an observer. (#13859) 2024-07-30 21:23:48 +00:00
serde.rs Sorts the scene entries by path before serializing. (#15047) 2024-09-09 15:31:30 +00:00