回答編集履歴

1

キー順修正、改行

2020/07/14 04:33

投稿

swordone
swordone

スコア20669

test CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ```java
4
4
 
5
- lstMaps.sort(Comparator.comparing((Map<String, String> m) -> m.get("ID")).thenComparing(Comparator.comparing(m -> m.get("TYPE")));
5
+ lstMaps.sort(Comparator.comparing((Map<String, String> m) -> m.get("TYPE"))
6
+
7
+ .thenComparing(Comparator.comparing(m -> m.get("ID")));
6
8
 
7
9
  ```