public static void Main(string[] args) { int[] a = { 1, 100, -4, 5, 13, 13, -13, 896, -1000 }; Sort.ArraySort(a, Sort.Ascending); ShowArray(a); Sort.ArraySort(a, Sort.Descending); ShowArray(a); string[] stringTest = { "b", "bcd", "aa", "11", "2", "aaa", "bbb", "acd" }; Sort.ArraySort(stringTest, Sort.Ascending); ShowArray(stringTest); Sort.ArraySort(stringTest, Sort.Descending); ShowArray(stringTest); }
public static void SimpleSort(int[] array) { Sort.ArraySort(array, Sort.Ascending); Finished?.Invoke(); }