We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8642c02 + 38d10ca commit 8009826Copy full SHA for 8009826
docker-test-server/src/main/java/com/example/server/model/ToothDataAnalyzer.java
@@ -21,18 +21,18 @@ public static class ToothReport implements Comparable<ToothReport>{
21
@Override
22
public int compareTo(ToothReport other) {
23
// null 체크
24
- if (this.name == null && other.name == null) {
+ if (this.percent == null && other.percent == null) {
25
return 0;
26
}
27
- if (this.name == null) {
+ if (this.percent == null) {
28
return -1;
29
30
- if (other.name == null) {
+ if (other.percent == null) {
31
return 1;
32
33
34
// name을 기준으로 오름차순 정렬
35
- return this.name.compareTo(other.name);
+ return this.percent.compareTo(other.percent);
36
37
38
0 commit comments