Project
ide
Description
FileExplorer (src/components/FileExplorer.tsx) declares showSortMenu, setShowSortMenu, sortMenuRef, and a createEffect that registers document mousedown to close the menu when clicking outside.
Nothing in the component ever calls setShowSortMenu(true), and sortMenuRef is never bound to a DOM node (ref={sortMenuRef} does not exist). The outside-click branch therefore never runs meaningfully (sortMenuRef stays undefined), and no sort dropdown is rendered.
Explorer sort order remains the real explorer.sortOrder setting (Settings UI / SettingsContext) — this block is orphaned scaffolding, not the live sort path.
Single root cause: unfinished or abandoned quick-sort UI left in the tree without a trigger or menu markup.
Error Message
Debug Logs
System Information
Cortex IDE alpha
File: src/components/FileExplorer.tsx
Screenshots

Steps to Reproduce
- Open Files sidebar with a folder loaded.
- Search the component (or UI) for any control that sets
showSortMenu to true — none exists.
- Confirm no element assigns
sortMenuRef.
Expected Behavior
Either remove the unused signals/effect or implement a visible sort control wired to the same model as Settings (explorer.sortOrder), with sortMenuRef on the menu root.
Actual Behavior
Dead code path; no user-facing sort menu from this state.
Additional Context
No response