public static void Main()
{
int[] arr = {1,6,2,0,3,5,8};
paixu(arr);
}
public static void paixu(IEnumerable<int> arr)
{
if (arr.Count() == 0) return;
int max=arr.Max();
foreach (int n in arr.Where(x=>x==max))
Console.WriteLine(n);
paixu(arr.Where(x=>x>max));
}
paixu(arr.Where(x=>x>max));
->
paixu(arr.Where(x=>x<max));