Truly independent web browser
LibWebView: Show built-in search engines alphabetically
Timothy Flynn32a50dddfbee
diff --git a/Base/res/ladybird/about-pages/welcome.js b/Base/res/ladybird/about-pages/welcome.jsindex 175a882d3c2..43f6ad2771f 100644--- a/Base/res/ladybird/about-pages/welcome.js+++ b/Base/res/ladybird/about-pages/welcome.js@@ -42,18 +42,8 @@ function updateSearchSuggestions() {searchSuggestionsDescription.textContent = `Your typing in the address bar is sent to ${name} before you press Enter.`;}-// The search engines are shown in a new random order each time, so that none is favored by its place in the list.-function shuffled(items) {- const result = [...items];- for (let i = result.length - 1; i > 0; --i) {- const j = Math.floor(Math.random() * (i + 1));- [result[i], result[j]] = [result[j], result[i]];- }- return result;-}-function renderSearchEngines() {- const names = shuffled(engines.search.map(engine => engine.name));+ const names = engines.search.map(engine => engine.name).sort((a, b) => a.localeCompare(b));searchEngines.replaceChildren();for (const name of names) {diff --git a/Documentation/UI/QuietDesign.md b/Documentation/UI/QuietDesign.mdindex 152557ce991..175ced46c52 100644--- a/Documentation/UI/QuietDesign.md+++ b/Documentation/UI/QuietDesign.md@@ -632,8 +632,8 @@ never shows "about:newtab".- About: the logomark, "Ladybird" in 40 px with the release badge, one tagline, and a cardwith version, build and platform plus a Copy button. Nothing else.- Welcome (`about:welcome`): the logomark at 56 px (0.85 line, so it doesn't get heavy), the title, then one centered column, in this order: search engine (optional,- nothing preselected, engines in a new random order each time, so none is favored by its- place; shown by name only in a five-column grid, never with logos or letter tiles, which+ nothing preselected, engines in alphabetical order; shown by name only in a five-column+ grid, never with logos or letter tiles, whichwould mean shipping other companies' trademarks or contacting their servers before anyonehas chosen), Layout (all three layouts), Color, content blocking switch, "Start browsing" (enabled as soon as thecurrent settings are loaded; it never waits for a choice).