Skip to content

Commit 5457416

Browse files
committed
no longer sort instrument parameters but show them in their intrinsic order
1 parent 5c6a859 commit 5457416

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Cookbook/CookbookCommon/Sources/CookbookCommon/Recipes/MiniApps/InstrumentSFZ.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ struct InstrumentSFZView: View {
3939

4040
var body: some View {
4141
let instrumentParams = conductor.instrument.parameters
42-
let instrumentParamsSorted = instrumentParams.sorted(by: {$0.def.name < $1.def.name} )
4342
let paramsPerLine = horizontalSizeClass == .compact ? 6 : 8
44-
let instrumentParamsChunked = instrumentParamsSorted.chunked(into: paramsPerLine)
43+
let instrumentParamsChunked = instrumentParams.chunked(into: paramsPerLine)
4544

4645
GeometryReader { geoProxy in
4746
VStack {

0 commit comments

Comments
 (0)