Skip to content

Commit 5c2f902

Browse files
committed
Simulation Experiment view: sort the parameters alphabetically.
1 parent 402ae65 commit 5c2f902

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer/src/components/views/SimulationExperimentView.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ function populateParameters(parameters: vue.Ref<string[]>, instanceTask: locSedA
159159
for (let i = 0; i < instanceTask.algebraicVariableCount(); i++) {
160160
addParameter(instanceTask.algebraicVariableName(i));
161161
}
162+
163+
// Sort the parameters alphabetically.
164+
165+
parameters.value.sort((parameter1: string, parameter2: string) => parameter1.localeCompare(parameter2));
162166
}
163167
164168
// Standard mode.

0 commit comments

Comments
 (0)