What are the types of array sorting algorithm?

i learn about bubble sorting and selection sorting technique for array to rearrange the value of array in c.
but when the value of the array are words,then how the algorithm works?are these algorithms still working.please explain.
and tell me about more the algorithms.

I am not versed in C but calling built-in JavaScript method .sort() sorts by Unicodes, more precisely UTF-16. It will sort strings in an array by their first letters according to the Unicode table.

Here is more info.


https://unicode-table.com/en/

1 Like

Different javascript engines use different sort algorithms. Firefox uses merge sort, whereas Chrome and node use TimSort, which is Python’s sorting algorithm. It’s not guaranteed to be a stable sort either.