Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #4305: Make Brave Search to show as first engine in SE picker. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub committed Oct 13, 2021
1 parent e556488 commit 82c9fdc
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,7 @@ class SearchSettingsTableViewController: UITableViewController {

var orderedEngines = searchEngines.orderedEngines
.sorted { $0.shortName < $1.shortName }

if let initialDefaultEngine =
SearchEngines.getUnorderedBundledEngines(isOnboarding: false, locale: .current).first {
orderedEngines = orderedEngines
.sorted { engine, _ in engine.shortName == initialDefaultEngine.shortName }
}
.sorted { engine, _ in engine.shortName == OpenSearchEngine.EngineNames.brave }

if isPrivate {
orderedEngines = orderedEngines
Expand Down

0 comments on commit 82c9fdc

Please sign in to comment.