title: Java how to sort a List by a field with locale?
body: <p>I am trying to sort a list by a field with a specific locale. How can I combine the following statements?</p>
  
  <pre><code>names.stream().sorted(Comparator.comparing(AClass::getName)).collect(Collectors.toList());
  
  Collator coll = Collator.getInstance(new Locale("tr","TR"));
  coll.setStrength(Collator.PRIMARY);
  </code></pre>