Skip to content

Commit

Permalink
Merge pull request #2361 from Provenance-Emu/bugfix/sortconflictsystem
Browse files Browse the repository at this point in the history
BugFix - Sort Conflicting systems by name in SystemSelectionView
  • Loading branch information
JoeMatt authored Nov 22, 2024
2 parents 290e891 + 3568424 commit dd5dda0
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 dd5dda0

Please sign in to comment.