I have this method:
public static IEnumerable<string> GetWords(string path, Func<string,Boolean> s)
{
Array.Sort(array, (first, last) => first.Length.CompareTo(last.Length));
}
I want to get the Array.Sort outside the GetWords method. Is there a simple way to do this?