Sort providers in alphabetical vs random (#5090)

This commit is contained in:
David Katz
2025-10-15 11:26:28 -04:00
committed by GitHub
parent 9251da4314
commit 5581078935
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -420,7 +420,10 @@ pub async fn configure_provider_dialog() -> Result<bool, Box<dyn Error>> {
let config = Config::global();
// Get all available providers and their metadata
let available_providers = providers().await;
let mut available_providers = providers().await;
// Sort providers alphabetically by display name
available_providers.sort_by(|a, b| a.display_name.cmp(&b.display_name));
// Create selection items from provider metadata
let provider_items: Vec<(&String, &str, &str)> = available_providers