質問編集履歴

2

記述漏れ

2017/07/13 10:49

投稿

omodai
omodai

スコア10

test CHANGED
File without changes
test CHANGED
@@ -240,7 +240,7 @@
240
240
 
241
241
  sectionList.add(new Section("D", "えええ"));
242
242
 
243
- sectionList.add(new Section("B", "いいい"));
243
+ sectionList.add(new Section("B", "ううう"));
244
244
 
245
245
 
246
246
 
@@ -302,7 +302,7 @@
302
302
 
303
303
  Section{sectionCode=D, sectionName=えええ}
304
304
 
305
- Section{sectionCode=B, sectionName=いいい}
305
+ Section{sectionCode=B, sectionName=ううう}
306
306
 
307
307
  -------------------------------------------------------
308
308
 
@@ -314,7 +314,7 @@
314
314
 
315
315
  Section{sectionCode=A, sectionName=あああ}
316
316
 
317
- Section{sectionCode=B, sectionName=いいい}
317
+ Section{sectionCode=B, sectionName=ううう}
318
318
 
319
319
  Section{sectionCode=C, sectionName=ううう}
320
320
 
@@ -364,7 +364,7 @@
364
364
 
365
365
  infoList.add(new Info(new Person("ichiro", "suzuki", 40), new Section("D", "えええ")));
366
366
 
367
- infoList.add(new Info(new Person("Eri", "ito", 20), new Section("B", "いいい")));
367
+ infoList.add(new Info(new Person("Eri", "ito", 20), new Section("B", "ううう")));
368
368
 
369
369
 
370
370
 
@@ -414,7 +414,7 @@
414
414
 
415
415
  Person{firstName=Eri, lastName=ito, age=20}
416
416
 
417
- Section{sectionCode=B, sectionName=いいい}
417
+ Section{sectionCode=B, sectionName=ううう}
418
418
 
419
419
  -------------------------------------------------------
420
420
 
@@ -438,7 +438,7 @@
438
438
 
439
439
  Person{firstName=Eri, lastName=ito, age=20}
440
440
 
441
- Section{sectionCode=B, sectionName=いいい}
441
+ Section{sectionCode=B, sectionName=ううう}
442
442
 
443
443
  -------------------------------------------------------
444
444
 

1

やりたいことの記述抜け

2017/07/13 10:49

投稿

omodai
omodai

スコア10

test CHANGED
File without changes
test CHANGED
@@ -328,7 +328,7 @@
328
328
 
329
329
 
330
330
 
331
- 以下のようにInfoオブジェクトの中にあるSectionオブジェクトのフィールドでソートしたい場合はどうするのがいいのでしょうか?
331
+ 以下のようにInfoオブジェクトの中にあるSectionオブジェクトの複数フィールドでソートしたい場合はどうするのがいいのでしょうか?
332
332
 
333
333
 
334
334
 
@@ -424,6 +424,8 @@
424
424
 
425
425
  * SectionのsectionNameでソートして以下のようにしたい
426
426
 
427
+ * **追記・・・**sectionNameだけでなくsectionCodeと合わせてソートするにはどうすればいいでしょうか?
428
+
427
429
 
428
430
 
429
431
  ```