DiscreteValuesFilterVM.Common.symbol items are sorted

This commit is contained in:
John Colvin committed 2020-06-23 15:50:59 -05:00
1 parent ce725867fa
commit f7c6868197
1 file changed
+1 -1
@@ -404,7 +404,7 @@ namespace mbts.spark.filters {
// Symbol
public static IDataGridColumnPersistentFilter<TRow, string[]> symbol<TRow>(Func<TRow, string> get_row_symbol, string prop_name, bool use_display_symbols = true) {
var symbols = use_display_symbols ? SecurityHelper.get_all_display_symbols() : co2.UserSymbol.get_all().Select(u => u.symbol);
return Create(symbols.Distinct().ToList(), get_row_symbol, prop_name);
return Create(symbols.Distinct().Ordered().ToList(), get_row_symbol, prop_name);
}
// Security Type
public static IDataGridColumnPersistentFilter<TRow, Security.ContractOneofCase[]> security_type<TRow>(Func<TRow, Security.ContractOneofCase> get_row_security_type, string prop_name) =>