Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

두번째 열까지 정렬 #7

Open
jeongye01 opened this issue Aug 10, 2023 · 0 comments
Open

두번째 열까지 정렬 #7

jeongye01 opened this issue Aug 10, 2023 · 0 comments

Comments

@jeongye01
Copy link
Owner

jeongye01 commented Aug 10, 2023

 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]);
                    }
                });


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant