How to sort an array?

how to sort an array
is there any function or method ?

@Harsh_Sonwani,
There are sorting algos like Bubble sort, insertion sort and so on which can be used for sorting. There is an inbuilt sorting method as well, but it is recommended that first understand the basic sorting algos and then move to the inbuilt method.
Inbuilt method can be used by, where arr is the array you need to sort:

		Arrays.sort(arr);

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.