A mutable slice of elements with a total ordering has a sort method.
Because Vec<T> implements DerefMut<[T]>, you can call this method directly on a vector, so vector.sort() works.
A mutable slice of elements with a total ordering has a sort method.
Because Vec<T> implements DerefMut<[T]>, you can call this method directly on a vector, so vector.sort() works.