You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Configurable sort order for the Files sidebar #1720
The Files sidebar order is fixed and cannot be changed from settings or the UI.
In a Daily Notes/ folder with YYYY-MM-DD.md files, notes are listed oldest first, so today's note is at the bottom and gets further away every day. There is no way to reverse the order.
From the source, FileTree.tsx calls useFileTree without a sort option, so @pierre/trees' default comparator applies: folders first, dot-prefixed entries first, then case-insensitive ascending name order. appearance.sidebar has no sort-related key.
An ascending / descending sort option for the Files sidebar, persisted per project per machine in .ok/local/config.yml under appearance.sidebar, the same way showHiddenFiles is.
@pierre/trees already accepts a sort comparator, and the Skills tree already passes a custom one, so the Files tree could follow the same pattern:
Activity
sarah-inkeep commentedon Sep 18, 2026
Hi @identity16, thanks for the thoughtful suggestion and detailed context, the use case definitely makes sense and our team will look into this.