Skip to content

Add API Models provider list not alphabetical (static option order drifts as providers are appended) #122

Description

@jdmanring

The 'Add API Models' provider picker (adm-provider-menu, rendered by _renderPickerMenu in static/js/admin.js) lists providers in the raw order of the static <select id=adm-epProvider> options in index.html. A one-time manual A-Z reorder was done once (0f693e5f), but every provider added since (DeepSeek, GitHub Copilot, ChatGPT, Pollinations, LongCat, OpenCode, Z.AI variants, NVIDIA) was appended to the end, so the list drifted back out of alphabetical order.

Fix: sort at render time in _renderPickerMenu (by option label, blank 'Custom URL' pinned first) so it stays A-Z regardless of append order. Append-proof, no data migration.

Classification: upstream-candidate (shared admin.js). Branch from upstream-mirror.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream-candidateBug or feature suitable for contributing to upstream

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions