• + 0 comments

    Array.Sort is just the sort method built in in C#. First parameter specifies the array need to be sort Second parameter is a comparer function specify how 2 string should be compared. In this case, if string a and b have same length, it comapre the actual string, otherwise it compare the length.