public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { FastObservableCollection <PresetBank> nodes = value as FastObservableCollection <PresetBank>; if (nodes != null) { FastObservableCollection <PresetBank> sorted = new FastObservableCollection <PresetBank>(nodes); sorted.Sort((x, y) => string.Compare(x.BankName, y.BankName, StringComparison.Ordinal)); return(sorted); } else { throw new ArgumentException(); } }