diff --git a/src/scene/mod.rs b/src/scene/mod.rs
index 03dfbae76..2e0a5ca6c 100644
--- a/src/scene/mod.rs
+++ b/src/scene/mod.rs
@@ -408,11 +408,17 @@ pub struct Scene {
/// Maps block_handle → (entity_handle.value() → sort_handle.value()).
/// Replaces the O(objects) linear scan inside `wires_for_block()` with an O(1) lookup.
sort_cache: RefCell