Skip to content

Conversation

@ZacharyZcR
Copy link
Member

Summary

  • Sort file manager entries: directories first, then files/links, all alphabetically
  • Use localeCompare with numeric: true for natural number ordering (file2 before file10)
  • Wrap in useMemo for performance

Fixes Termix-SSH/Support#443

Problem

Files were displayed in filesystem order (equivalent to ls -U) instead of alphabetically, making it difficult to find specific files and folders.

Files Changed

  • src/ui/desktop/apps/features/file-manager/FileManager.tsx - Add sort to filteredFiles

Test Plan

  • Open file manager, verify directories appear before files
  • Verify all entries are sorted A-Z
  • Verify natural number ordering (file2 before file10)
  • Verify search filtering still works correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant