对数组中的数字进行排序
1 public int[] PopSmall(int[] IntArray) 2 { 3 int temp = 0; 4 for (int i = 0; i < IntArray.Length - 1; i++) 5 { 6 for (int j = i + 1; j < IntArray.Length; j++) 7 { 8 if (IntArray[i] > IntArray[j]) 9 { 10 temp = IntArray[i]; 11 IntArray[i] = IntArray[j]; 12 IntArray[j] = temp; 13 } 14 } 15 } 16 return IntArray; 17 }