Default sort() in JavaScript uses insertion sort by V8 Engine of Chrome and Merge sort by Mozilla Firefox and Safari.But if you need to sort large number of elements. So, the solution is to use Quick sort for large dataset. Log in or register to post comments