Should I use sorting algorithms like bubble sort, insertion sort or should I use the inbuilt sort() function in c++ to sort arrays? And if I should use sort() function, why do I need to learn other sorting algorithms? I'm not understanding what is the use of such algorithms if there is an inbuilt sort function, do they have something special?