From 3fbacd91207ef5692cc9e596c8ba8fac6de396b9 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 19 Sep 2017 15:04:10 -0400 Subject: [PATCH] SyntheticEditor2 sorts security legs for new Synthetics --- src/client/spark/mspark/Shell/MarketModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/mspark/Shell/MarketModule.cs b/src/client/spark/mspark/Shell/MarketModule.cs index 3c0684ef8..88ded8c09 100644 --- a/src/client/spark/mspark/Shell/MarketModule.cs +++ b/src/client/spark/mspark/Shell/MarketModule.cs @@ -159,7 +159,7 @@ namespace mbts.spark synthetic = SyntheticDataHelper.Defaults.Security(find_unique_synthetic_name(), s); strategy = _synthetic_strategy_map.TryGetValue(s.Id, out SyntheticExecutionStrategy ses) ? ses.ExecutionStrategy.Clone() : SyntheticDataHelper.Defaults.ExecutionStrategy(s); } else { - synthetic = SyntheticDataHelper.Defaults.Security(find_unique_synthetic_name(), securities); + synthetic = SyntheticDataHelper.Defaults.Security(find_unique_synthetic_name(), securities.Ordered()); strategy = SyntheticDataHelper.Defaults.ExecutionStrategy(securities); } show_synthetic_editor(synthetic, strategy);