pub fn sorted(word: &str) -> StringExpand description
Sort the slice (non mutating).
Rust currently doesn’t have a non-mutating sort function https://github.com/rust-lang/rfcs/issues/2731. There is a handy third-party tool itertools But we minimize the use of any external dependencies, as the project’s goal is learning.