title: Collectors.groupingBy() returns result sorted in ascending order java
body: <p>I am sending result in descending order but I get output with ascending order</p>
  
  <pre><code>List&lt;myEntity&gt; myData = new ArrayList&lt;&gt;();
  Map&lt;Integer,List&lt;myEntity&gt;&gt; myid = new LinkedHashMap&lt;&gt;();
  
  try {
      myData = myService.getData(id); 
      myid = myData.stream().collect(Collectors.groupingBy(myEntity::getDataId)); 
  </code></pre>
  
  <p>Here mydata is sorted by desc order but after creating collections by group data id my list get sorted with ascending order. I want my collection list to be descending order not ascending order.</p>