java stream groupingby sorted list