title: How do I sort a vector of Strings alphabetically?
body: <p>I want to order a Strings vector alphabetically</p>
  
  <pre><code>fn main() {
      let mut vec = Vec::new();
      vec.push("richard");
      vec.push("charles");
      vec.push("Peter");
      println!("{:?}", vec);
  }
  </code></pre>
  
  <p>I tried <code>println!("{:?}", vec.sort());</code> and <code>println!("{}", vec.sort_by(|a,b| b.cmp(a)));</code> and both response is <code>()</code>.</p>
  
  <p>And I expect the following result</p>
  
  <pre><code>["charles", "Peter", "richard"]
  </code></pre>