Using java native sorting algorithm