The small downtown, which is done before, you need to create a character index, just a string, each character in the string can be used as an index. This string is also arranged ascended. I look at the right left, I found String There is no sort feature in it. ORRAY is a sort feature. Is I take a character in the string one in an array? I don't want to do it, just write two functions in the tool class. Realization, the code is as follows. Let's refer to it. Mainly use two-point method to realize the location of the location, and then insert it in a suitable location .NameSpace Tools.Module {public class tools {public tools () {}
Public static string getStrfromstr (String src, int index) {if (src.indexof (",") == 0) SRC = src.remove (0, 1); for (int i = 0; i INDEX = ILENGTH / 2; IF (Str [INDEX]> C) {Return GettheSortedIndex (Str.Substring (0, INDEX), C);} else IF (STR [INDEX]