@@ -175,15 +175,20 @@ public IObservable<ElasticsearchMessage> Start(string[] additionalSettings = nul
175
175
}
176
176
}
177
177
}
178
- var settings = new string [ ]
179
- {
180
- $ "-Des.cluster.name={ this . ClusterName } ",
181
- $ "-Des.node.name={ this . NodeName } ",
182
- $ "-Des.path.repo={ this . RepositoryPath } ",
183
- $ "-Des.script.inline=on",
184
- $ "-Des.script.indexed=on",
185
- $ "--node.testingcluster true"
186
- } . Concat ( additionalSettings ?? Enumerable . Empty < string > ( ) ) ;
178
+ var settings = new string [ ]
179
+ {
180
+ $ "-Des.cluster.name={ this . ClusterName } ",
181
+ $ "-Des.node.name={ this . NodeName } ",
182
+ $ "-Des.path.repo={ this . RepositoryPath } ",
183
+ $ "-Des.script.inline=on",
184
+ $ "-Des.script.indexed=on",
185
+ $ "--node.testingcluster true"
186
+ }
187
+ . Concat ( additionalSettings ?? Enumerable . Empty < string > ( ) )
188
+ . OrderByDescending ( s =>
189
+ s . StartsWith ( "-d" , StringComparison . OrdinalIgnoreCase ) ||
190
+ s . StartsWith ( "-p" , StringComparison . OrdinalIgnoreCase ) )
191
+ . ThenBy ( s => s ) ;
187
192
188
193
this . _process = new ObservableProcess ( this . Binary , settings . ToArray ( ) ) ;
189
194
0 commit comments