Merge sort Shuld Be a Answer Because In Marge Sort Both Best Case ANd Worst Case Time Complexity Is O(nlogn)
Only.
Marge Sort Time Complexity Is not Depend On the Input Which We Provide And It Will Try To Divide a input Into Equal Part .
Please Correct Me If I am Wrong..