SyntaxFix
Write A Post
Hire A Developer
Questions
The simplest way:
Arrays.sort(myArr, (a, b) -> a[0] - b[0]);