vec.sort(); vec.reverse();
let mut vec = vec![1, 2, 3]; vec.reverse(); println!("{:?}", vec); // [3, 2, 1] vec.sort(); println!("{:?}", vec) // [1, 2, 3]