📅  最后修改于: 2022-03-11 14:49:24.852000             🧑  作者: Mango
fn sort(array: &mut Vec) {
for i in 0..array.len() {
for j in 0..array.len() - i - 1 {
if array[j + 1] < array[j] {
array.swap(j, j + 1);
}
}
}
}