private static Dictionary<int, Dictionary<int, string>> SortDictionary(Dictionary<int, Dictionary<int, string>> unSortedDict)
{
var sortedDict = (unSortedDict.OrderBy(entry => entry.Value.Keys)).ToDictionary(pair => pair.Key, pair => pair.Value);
return sortedDict;
}
나는 부착하고는 다음 System.ArgumentException: At least one object must implement IComparable.
입니다 던지는 당신은 기분이 언짢아 내가 뭔가 잘못하고있는 중이 야, 난 달성하기 위해 노력하고 어떤 생각을 가지고 내가 당신의지도가 필요하므로 정렬되지 않은 키를 볼 수있는 아래의 데이터 스크린 샷, 감사
그 스크린 샷의 텍스트를 읽으려면 더 좋은 안경이 필요합니다 ... –