Home > Software engineering >  .net contain digital string sorting problem, worry, everybody to help!
.net contain digital string sorting problem, worry, everybody to help!

Time:10-27

For example:
String is: a0. Name, a2. Name, a1, name, ao. Id, a1. Id, a2. Id
To convert: a0. Name, a0. Id, a1. Name, a1. Id, a2. Name, a2. Id
Specific what to do ah, algorithm or write a method can be

CodePudding user response:

In the list. The Sort (); To achieve the

CodePudding user response:

List. The Sort (); Can realize but there is a problem; For example, a0, a1, a11, a10, a2 sort will have problems
Baidu to need to write a class inherits Icomparer interface, but I didn't understand, the wrong (not instantiate) isn't need to refer to what?