Skip to content

Dropbox: sort folder contents by name (numeric-aware)#12

Open
mbyrdLCS wants to merge 1 commit into
mainfrom
dropbox-sort-entries
Open

Dropbox: sort folder contents by name (numeric-aware)#12
mbyrdLCS wants to merge 1 commit into
mainfrom
dropbox-sort-entries

Conversation

@mbyrdLCS

@mbyrdLCS mbyrdLCS commented Jul 8, 2026

Copy link
Copy Markdown

Dropbox's list_folder API returns entries in arbitrary order, and nothing downstream sorts them — so a lesson folder with files named "01 Opener.png", "02 Countdown.mp4", ... displays and imports shuffled (screenshot from B1Admin's lesson dialog showed 11, 01, 12, 03, 04, 09...).

One change in filterMediaEntries: sort folders and media files by name with a numeric-aware localeCompare, so numeric prefixes order naturally (2 before 10). Affects browse, playlist, and instructions for the Dropbox provider only.

Tests pass (24/24), build clean.

🤖 Generated with Claude Code

Dropbox list_folder returns entries in arbitrary order, so lessons with
01/02/03-prefixed files displayed and imported shuffled. Sort folders and
media files with a natural compare so "2 Song" sorts before "10 Closer".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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