public string GetInt() { int[] a = { 9, 5, 10, 10, 20, 88, 100 }; for(int i = 0; i < a.Length; i++) { for(int j = i + 1; j < a.Length; j++) { if (a[i] > a[j]) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } } } string s = ""; foreach (int item in a) { s += item+","; } return s; }