java sort method

Java
Arrays.sort();//this method is an inbuild function in java
//to sort the array
Source

Also in Java: