C# ?? List.Sort????(IComparer<T>)?????÷?
???????????? ???????[ 2013/10/8 14:59:47 ] ????????
Sort?????????????Ч????
??????????д??????????
??????????д??????????
view plaincopy
List<string> strList = new List<string>();
strList.Add("A2013092289-(1)");
strList.Add("A2013092289-(13)");
strList.Add("A2013092289-(14)");
strList.Add("A2013092289-(15)");
strList.Add("A2013092289-(2)");
strList.Add("A2013092289-(20)");
strList.Add("A2013092289-(3)");
strList.Sort(compar);
|
?????????????????
view plaincopy
List<string> dinosaurs = new List<string>();
dinosaurs.Add("1");
dinosaurs.Add("32");
dinosaurs.Add("43");
dinosaurs.Add("4");
dinosaurs.Sort(compar);
|
????????????????????
view plaincopy
List<string> strIng = new List<string>();
strIng.Add("Pachycephalosaurus");
strIng.Add("Amargasaurus");
strIng.Add("Mamenchisaurus");
strIng.Add("Deinonychus");
strIng.Sort(compar);
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????