Repository navigation
feat: sort web file manager columns by name, size or date - #63
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: the web file manager always lists folders first, then EPUBs, then other files, each group alphabetical.
After: clicking the Name, Size or Modified header sorts by that column, and clicking it again reverses the order. The active column shows ▲ or ▼. Folders always stay on top in A to Z order. The chosen sort is kept in
sessionStorage, so it carries over as you open other folders in the same tab. Until you pick a sort, the original order is unchanged.How:
hydrate()now stores the fetched list, and the table markup moved intorenderFileTable(), so a header click re-renders without fetching the list again. Sorting uses onecompareFiles()comparator. There are no firmware changes; only the generated web page grows.Sizes vs development 9b0c70d:
🤖 Generated with Claude Code
https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
Generated by Claude Code