Sorts the elements in an entire array using the default comparer.
문법
Array.Sort(array)예제
아래 값을 입력하면 예제에 즉시 반영됩니다.
numbers→Sort→Console→WriteLine→string→int[] numbers = { 3, 1, 4, 1, 5, 9 };
Array.Sort(numbers);
Console.WriteLine(string.Join(", ", numbers));
// 1, 1, 3, 4, 5, 9