Does inbuilt sort function follows bubble sort?

Does inbuilt sort function sorts the array in the same manner bubble sort does or it follows some other sorting technique?

Hey @mahima the algorithm used by sort() is IntroSort. Introsort being a hybrid sorting algorithm uses three sorting algorithm to minimise the running time, Quicksort, Heapsort and Insertion Sort. Simply putting, it is the best sorting algorithm around. It is a hybrid sorting algorithm, which means that it uses more than one sorting algorithms as a routine.