Skip to content

Commit

Permalink
Sort broker names in debug mode (#2794)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/72649045549333/1207353159129206/f
Tech Design URL:
CC:

**Description**
![Screenshot 2024-05-20 at 6 16
47 AM](https://github.com/duckduckgo/macos-browser/assets/18444/90fbeeb2-eef8-4a98-8f3b-1d9a4dd2075c)
:

**Steps to test this PR**:
1.

<!--
Tagging instructions
If this PR isn't ready to be merged for whatever reason it should be
marked with the `DO NOT MERGE` label (particularly if it's a draft)
If it's pending Product Review/PFR, please add the `Pending Product
Review` label.

If at any point it isn't actively being worked on/ready for
review/otherwise moving forward (besides the above PR/PFR exception)
strongly consider closing it (or not opening it in the first place). If
you decide not to close it, make sure it's labelled to make it clear the
PRs state and comment with more information.
-->

---
###### Internal references:
[Pull Request Review
Checklist](https://app.asana.com/0/1202500774821704/1203764234894239/f)
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
[Pull Request
Documentation](https://app.asana.com/0/1202500774821704/1204012835277482/f)
  • Loading branch information
brianhall authored May 20, 2024
1 parent c34580a commit 40b9e6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct DataBrokerRunCustomJSONView: View {

Divider()

List(viewModel.brokers, id: \.name) { broker in
List(viewModel.brokers.sorted(by: { $0.name.lowercased() < $1.name.lowercased() }), id: \.name) { broker in
Text(broker.name)
.onTapGesture {
jsonText = broker.toJSONString()
Expand Down

0 comments on commit 40b9e6c

Please sign in to comment.