无聊写一个冒泡排序
public static int[] mpSort(int[] arrayInt) { if (arrayInt.Length < 2) { return arrayInt; } for (int i = 0; i < arrayInt.Length - 1; i++) { for (var j = i + 1; j < arrayInt.Length; j++) { if (arrayInt[i] > arrayInt[j]) { int value = arrayInt[i]; arrayInt[i] = arrayInt[j]; arrayInt[j] = value; } } } return arrayInt; }