Skip to content

Commit cdd7b46

Browse files
committed
refactor(activity): use Txid comparison for output sorting
1 parent a380278 commit cdd7b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BDKSwiftExampleWallet/View/Activity/LocalOutputListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct LocalOutputListView: View {
3030
.listRowSeparator(.hidden)
3131
} else {
3232
let sortedOutputs = localOutputs.sorted { lhs, rhs in
33-
lhs.outpoint.txid.description < rhs.outpoint.txid.description
33+
lhs.outpoint.txid < rhs.outpoint.txid
3434
}
3535
ForEach(sortedOutputs, id: \.outpoint) { output in
3636
LocalOutputItemView(

0 commit comments

Comments
 (0)