Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ public static class ToothReport implements Comparable<ToothReport>{
@Override
public int compareTo(ToothReport other) {
// null 체크
if (this.name == null && other.name == null) {
if (this.percent == null && other.percent == null) {
return 0;
}
if (this.name == null) {
if (this.percent == null) {
return -1;
}
if (other.name == null) {
if (other.percent == null) {
return 1;
}

// name을 기준으로 오름차순 정렬
return this.name.compareTo(other.name);
return this.percent.compareTo(other.percent);
}
}
}
Loading