Skip to content

두번째 열까지 정렬 #7

@jeongye01

Description

@jeongye01
 Arrays.sort(tmp, 0, data.size(), new Comparator<int[]>() {
                    public int compare(int[] row1, int[] row2) {
                        int cmp = Integer.compare(row1[0], row2[0]);
                        if (cmp != 0) {
                            return cmp;
                        }
                        return Integer.compare(row1[1], row2[1]);
                    }
                });


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions