title: How to get ordered type of Map from method Collectors.groupingBy
body: <p>I need to separate list of data into different lists by type, for this purpose I use construction</p>
  
  <pre><code>Map&lt;String,List&lt;Dish&gt;&gt; dishMap = menu.stream()  
           .collect(Collectors.groupingBy(Dish::getType));
  </code></pre>
  
  <p>but How can I get LinkedHashMap instead HashMap from method "Collectors.groupingBy". I found some data in javadoc but I can`t get what I must to do with this method:</p>
  
  <pre><code>Map&lt;String,List&lt;Dish&gt;&gt; dishMap = menu.stream().collect(Collectors.groupingBy(
                  Dish::getType,
                  LinkedHashMap::new, ????));
  </code></pre>
  
  <p>what should I place in the third argument in method "groupingBy" to get what I need? </p>