Skip to content

Commit

Permalink
BugFix - Sort Conflicting systems by name in SystemSelectionView
Browse files Browse the repository at this point in the history
  • Loading branch information
proskd committed Nov 22, 2024
1 parent 290e891 commit 3568424
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PVUI/Sources/PVSwiftUI/Imports/SystemSelectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ struct SystemSelectionView: View {

var body: some View {
List {
ForEach(item.systems, id: \.self) { system in
ForEach(item.systems.sorted(by: { a, b in
return a.name <= b.name
}), id: \.self) { system in
Button(action: {
// Set the chosen system and update the status
item.userChosenSystem = system
Expand Down

0 comments on commit 3568424

Please sign in to comment.